New course! Every coder should learn Generative AI!
Try a free lesson0
How to clear the screen in java
We use clrscr() in c/c++. Which method is used in java to clear the screen.
1 Answer
+ 2
Runtime.getRuntime().exec("cls");
We use clrscr() in c/c++. Which method is used in java to clear the screen.