how to clear the screen output in java just like we use in c and c++ system("cls"); | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

how to clear the screen output in java just like we use in c and c++ system("cls");

I'm using java SE. I am using the CLI

27th Mar 2018, 6:41 PM
Shashank Dubey
Shashank Dubey - avatar
5 Answers
+ 1
Be more specific, in your CLI? In your IDE? In a specific program you wrote?
27th Mar 2018, 6:43 PM
***
*** - avatar
+ 1
I use CLI
27th Mar 2018, 6:43 PM
Shashank Dubey
Shashank Dubey - avatar
+ 1
type: clear Hit enter Your CLI is now clear of the screen output :) Hope thats solves your problem
27th Mar 2018, 6:47 PM
***
*** - avatar
+ 1
27th Mar 2018, 7:03 PM
***
*** - avatar
0
I want tu use a statement in java program that will clear the output screen when that code executed
27th Mar 2018, 6:48 PM
Shashank Dubey
Shashank Dubey - avatar