I am also finding you can use this: System.out.println("\033");
I have checked it in Eclipse. Please check it in any other compiler/ IDE.
Sorry Doesn't work with my Java 6
Output -
/033
/033 : Your slash is the wrong way around ("\033", not "/033").
Wiki User
∙ 12y agoWiki User
∙ 14y agoIf you're working straight from the command line, then there's really no normal way to do this. The easiest way is to know how big the displayable window is and simply print out newlines until the whole window is "clear."
There is no way to clear the screen inJAVA. It seems that you are a beginner in Javaand just migrated from age old Turbo C.The reason because there is no clear screen is that you will never need it when you develop actual Javaprograms. Have you ever seen an application that clears it screen (apart from DOS based applications).When you develop an application for a client, you do not expect him/her to go through your clumsy console. The console is available only for debugging purposes or for learning the language. When you deploy your application, you always have an interface associated with it (like your own internet browser or any other window).So stop worrying about clearing the screen.Of course, you can still manually clear the screen of text by printing out enough blank lines to run all other text out of the terminal window.Most console windows will start of with about 25 lines of text, so something like the following should do what you want in most cases:for(int i = 0; i < 40; ++i) {System.out.println();}
You have to just write there exit keyword.And if you have maxize screen of dos then u have to press alt+enter. Pooja
It is unclear what the questioner is looking for. Chats in Java may refer to web forums which are dedicated to those users interested in Java. No clear translation for 'chat sin java' has been found.
The Java console is a display of output sent by a Java program. This is similar to the MS DOS operating system.To print to the console, a programmer will type "println(text);" or "print(text);" depending is the programmer wants to make a new line after the text(println) or not(print).
use system("clear"); eg: main() { system("clear"); }
There is nothing called DOS applet.. You can run Java applet from DOS..
The command CLS clears the screen and resets the location of the command prompt to the top of the screen. This is similar to the Unix command clear.
DOS
1) Type "date" + enter = display the date commend 2) Type "clr" + enter = clear the screen commend
clear
no it dos not
In Windows, to bring up the DOS screen, simply go to the start menu, choose RUN, and enter CMD. You can also access the DOS screen from Windows during startup by hitting F8 during the boot process and choosing COMMAND PROMPT.
No, in fact, the clear screen protectors help to prevent damage to the Nintendo DS screen.
There is no way to clear the screen inJAVA. It seems that you are a beginner in Javaand just migrated from age old Turbo C.The reason because there is no clear screen is that you will never need it when you develop actual Javaprograms. Have you ever seen an application that clears it screen (apart from DOS based applications).When you develop an application for a client, you do not expect him/her to go through your clumsy console. The console is available only for debugging purposes or for learning the language. When you deploy your application, you always have an interface associated with it (like your own internet browser or any other window).So stop worrying about clearing the screen.Of course, you can still manually clear the screen of text by printing out enough blank lines to run all other text out of the terminal window.Most console windows will start of with about 25 lines of text, so something like the following should do what you want in most cases:for(int i = 0; i < 40; ++i) {System.out.println();}
Function 'clrscr' is not part of the C language. Or the standard libraries. It is MS-DOS specific function, use the help for details (clrscr means clear the screen).
the screen is not clear
clear