How to clear the screen in java | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to clear the screen in java

We use clrscr() in c/c++. Which method is used in java to clear the screen.

14th Apr 2019, 6:55 AM
Boddu Harish
Boddu Harish - avatar
1 Answer
+ 2
Runtime.getRuntime().exec("cls");
14th Apr 2019, 7:52 AM
Someone Other
Someone Other - avatar