Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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("33[H33[2J");
        System.out.flush();
    }
}
Source by www.delftstack.com #
 
PREVIOUS NEXT
Tagged: #clear #terminal #java
ADD COMMENT
Topic
Name
3+3 =