• 0

clearing the java screen


Question

hey all,

for my java program, it has to be run in dos (its an assignment). however, cause its so big and it has a lot of stuff printed on the screen, it tends to get messy.

so the question; can you clear the screen? so after a bit of code is finished, the screen blanks and my menu code can be shown on a clean screen.

thanks all

matt

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

No, you can't really. Screen buffer/cursor stuff is platform dependent(i.e. what works for one OS, won't work for another). You can just create a method that prints out 20+ blank lines. Lame, I know, but that's the only way.

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.