• Post Reply Bookmark Topic Watch Topic
  • New Topic

Clear screen  RSS feed

 
Amrita Dole
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do you clear the screen when working on a console application?
something like System.out.clearScreen?.....
 
Angel Dobbs-Sciortino
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I searched on Google and I found this:
System.out.print("\033[H\033[2J");
Or you can just use System.out.println() however many times necessary to clear the screen.
Angel
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!