Some java help please. one line

SnoopCat

Senior member
Jan 19, 2001
926
0
0
anyone know the command to clear out the console in java?
for example:

System.out.println("Stuff");


now i want to remove the words on the screen and make it a blank screen....

anyone know the command?

thanks
 

her209

No Lifer
Oct 11, 2000
56,336
11
0
I don't think there is such a command.

As far as I know, there is no similar command in C/C++.

Must be a Pascal/Basic thing.
 

Argo

Lifer
Apr 8, 2000
10,045
0
0
There cannot be such a command in java. However, you can issue a shell command (if you know what os you are running) that would do that for you.
 

JetBlack69

Diamond Member
Sep 16, 2001
4,580
1
0
The only thing I can think of is:

System.out.print("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n");

and fill it with as many \n you need to clear the screen.