answersLogoWhite

0


Best Answer

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();

}

User Avatar

Wiki User

βˆ™ 14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you clear screen in java eclipse?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the latest IDE of java?

Eclipse


What kind of project is Eclipse BIRT?

The Eclipse BIRT project is an open source Eclipse-based reporting system. The system integrates with Java/Java EE applications to produce compelling reports.


Where can one download the Eclipse Java program?

One can easily download Eclipse Java for free on Eclipse's website. Popular download sites such as Softpedia, Sourceforge, and CNET also offer this download.


How can you become a good java programmer. Using Eclipse or even BlueJ?

It is suggested to take college courses in Java to become a good Java programmer using the programs Eclipse or BlueJ. These courses can be found in-class, or online.


How to clear dos screen in JAVA?

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").


What Do you Open your java File With?

.java files can be opened using an IDE (like Eclipse or NetBeans) or with notepad.exe.


Is it possible to have file name as java eg javajava?

Yes you can name a file (class if you use eclipse) java or even have java in the name.


What is Java editor?

A Java editor is nothing but a tool that can be used to edit java source files. Ex: Textpad, Notepad, Eclipse etc...


How can TFS be accessed by Java developers?

Through all variants of Eclipse


Where can one download a java runtime environment?

The java runtime environment can be downloaded from several websites. Among them are Oracle, Java, CNET, Softsonic, Eclipse, AfterDawn, Soft32, and OldApps.


What is java ide?

Java Integrated Development Environment (IDE) provides an environment to Edit, compile and debug and generate java codeThere are several java IDE like Eclipse, WSAD, BlueJ, JCreator etc


Are tools like Eclipse different languages from Java?

Eclipse is not a language. It is an Integrated Development Environment (IDE). These are tools designed to allow you to easily and quickly write, run, test, and debug code for various programming languages.There are versions of the Eclipse IDE for: Java, C/C++, and PHP.