clear screen

is their a method for clearing current output in dos window?
BobtheBuidlerAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
sigmaconConnect With a Mentor Commented:
Just print a new line to the screen 25 times (or how often you want it).

for(int i = 0; i < 30; i++) {
   System.out.println("");
}
0
 
petmagdyCommented:
c:\cls
0
 
sigmaconCommented:
cls

( I am assuming you'r asking for the case that you yourself are on the command line. If this is a java scpecific question, you need to be more specific, like what kind of output you want to clean from where .... )
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
CEHJCommented:
If you mean programmatically and on Windows then practicably you can't AFAIK
0
 
BobtheBuidlerAuthor Commented:
K, well, heres the point of it.

Im using java and im testing alot of data, need to view alot of output. want to clean it up. basically im asking if theres a way to clear all past output using java code, to where the new output is starting on a clean slate so to say. does java support this or is their a way to do it?
0
 
BobtheBuidlerAuthor Commented:
pardon the previous vagueness, just registered on site. :) very cool.
0
 
GrandSchtroumpfCommented:
> need to view alot of output.
you can redirect the output to a file, and view the file in a good text editor such as SciTE (free open source).
0
 
BobtheBuidlerAuthor Commented:
Thx guys.
0
All Courses

From novice to tech pro — start learning today.