Please give an idea of the clear screen command in java. Just like the clrscr() in Turbo C... pls
Please give an idea of the clear screen command in java. Just like the clrscr() in Turbo C... pls
In short, walay clrscr(); command just like in C/C++PHP Code:
for(i=1; i<=25; i++){
System..out.writeln("\n");
}
Last edited by ChaosOrb; 02-17-2010 at 10:34 PM.
Hehehe.. Nangutana pud ko ana sa una katong first time ko nag Java gikan ug C and C++. As far as I know wala.. Pwede but dili worth it.. Kung curious jud kaayo ka, do a little googling.. I think your instructor won't mind if dili ma clear imo console screen.. He probably knows nga wala.. hehehe..
Kung naa ka makitan.. post ha.. Dugay ra na nga pangutana wa ko katubag.. hehehe
Happy Hunting!!![]()
Java was not designed on a console applications.
Runtime.getRuntime().exec("cls"); if using Windows, but if not change "cls" to "clear"
System("cls") works for C, so I'm guessing Runtime.getRuntime().exec("cls") also works for java.
Similar Threads |
|