Clear Console Java Code Example


Example 1: java clear console

Runtime.getRuntime().exec("cls");

Example 2: java clear console

public static void clearScreen() {         System.out.print("\033[H\033[2J");         System.out.flush();     }

Comments

Popular posts from this blog

Chemistry - Bond Angles In NH3 And NCl3

Are Regular VACUUM ANALYZE Still Recommended Under 9.1?

Can Feynman Diagrams Be Used To Represent Any Perturbation Theory?