Can any body please tell me what code is used for clear screen in Java? For example in C++
system(\"CLS\");
What code is used in Java for
A way to get this can be print multiple end of lines ("\n") and simulate the clear screen. At the end clear, at most in the unix shell, not removes the previous content, only moves it up and if you make scroll down can see the previous content.
Here is a sample code:
for (int i = 0; i < 50; ++i) System.out.println();