It's not a secret anymore!
The moose likes Beginning Java and the fly likes clear screen Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "clear screen" Watch "clear screen" New topic

clear screen

swapnil dey

Joined: Sep 25, 2000
Posts: 18
hey can someone tell me equvivalent of clrscr() of C / C++ in java.
Vijay Vaddem
Ranch Hand

Joined: Feb 13, 2004
Posts: 243
In what scenario would you like to use this feature??
Srinivasa Raghavan
Ranch Hand

Joined: Sep 28, 2004
Posts: 1228
May be this can be achieved using a .bat file in windows or .sh in unix flavours

Like: startProgram.bat

@echo off
java myJavaFile

Now run the batch file.

Thanks & regards, Srini
MCP, SCJP-1.4, NCFM (Financial Markets), Oracle 9i - SQL ( 1Z0-007 ), ITIL Certified
I agree. Here's the link:
subject: clear screen
It's not a secret anymore!