How to clean the java terminal?

0

Is there any way to erase everything that appears in the java terminal after using some method with System.out.println ();?

    
asked by zedsdeath 20.10.2017 в 05:19
source

1 answer

0

Investigating had found this function:

public static void clearScreen() {  
System.out.print("3[H3[2J");  
System.out.flush();  

}

I hope it works for you too.

    
answered by 20.10.2017 / 05:49
source