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
You can use an emulation of cls with for (int i = 0; i < 50; ++i) System.out.println();
cls
for (int i = 0; i < 50; ++i) System.out.println();