Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to clear the screen by pressing a key in java

public static void clearScreen() {
    System.out.print("33[H33[2J");
    System.out.flush();
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #clear #screen #pressing #key #java
ADD COMMENT
Topic
Name
1+3 =