Answers for "how to clear terminal in java"

0

how to clear terminal in java

public class ClearConsoleScreen {
    public static void main(String[] args){
        System.out.print("Everything on the console will cleared");
        System.out.print("\033[H\033[2J");
        System.out.flush();
    }
}
Posted by: Guest on April-25-2022

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language