Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Java (http://www.go4expert.com/forums/java/)
-   -   Some question about java pogramming(clear screen) (http://www.go4expert.com/forums/question-java-pogramming-screen-t19500/)

qqjay89 21Sep2009 20:52

Some question about java pogramming(clear screen)
 
i am new for java, in C++ we have the code system("cls") for clear screen, but in java which code can i use to clear the screen??

nimesh 22Sep2009 02:44

Re: Some question about java pogramming(clear screen)
 
Try these

System.out.println("/033"); [Source]

System.out.println ((char)27 + "[2J");[Source]

SaswatPadhi 22Sep2009 19:25

Re: Some question about java pogramming(clear screen)
 
Check this thread too :: http://www.go4expert.com/showthread.php?t=8756


All times are GMT +5.5. The time now is 18:43.