aspose file tools*
The moose likes Beginning Java and the fly likes System.out Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "System.out" Watch "System.out" New topic
Author

System.out

Michael Remillard
Greenhorn

Joined: Apr 16, 2004
Posts: 2
Hi.
I would like to know what method (if available) allows me to do an equivalent of a "C" clrscr() when I am writing to the System.out with methods like "print()" or "println()".
Is this available or is java so caught up in streams that this concept just doesn't have its place here?

Anyway, let me know.


Michael Remillard<br />michael_remillard@globetrotter.net<br />mremillard@taleo.com
Joel McNary
Bartender

Joined: Aug 20, 2001
Posts: 1815
Unfortunately, Java does not support anything like this. You may have redirected System.out to something like a file or a custom textbox. As such, the streams are blind to things like "screen size."
You could write your own (or find) a java-console that you could clear (or write your own method to print a lot of newlines), but as far as I know that is the extent to which you can do something like this.


Piscis Babelis est parvus, flavus, et hiridicus, et est probabiliter insolitissima raritas in toto mundo.
Michael Remillard
Greenhorn

Joined: Apr 16, 2004
Posts: 2
Thanks. I was beginning to get that feeling...
Oh well...
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: System.out
 
Similar Threads
How to write JUnit test
System.out ?
GUI Tool
Using System class
read from standard in