0
How to clean console in java
you know that, in C and C++ languages in windows, we can use this code to clean the console : system("cls"); but how about in java? is there any method for it? or is there any way to clean the console?
2 Answers
+ 1
https://stackoverflow.com/questions/2979383/java-clear-the-console Hope it helpsâș
0
I finally did it with code below:
new ProcessBuilder.("cmd","/c","cls").inheritIO().start().waitFor();