0
How to clear screen in java?
I have been trying to add like: -Runtime.getRuntime().exec("cls"); _import java.io.IOException; public class CLS { public static void main(String... arg) throws IOException, InterruptedException { new ProcessBuilder("cmd", "/c", "cls").inheritIO().start().waitFor(); } } And more But it still error message So how can I fix it?
2 Answers
0
thank you so much