0
How I can clear console in java ide netbeans?
I have a simple program written on Java. When I do a lot of operations, console left a lot of text. How to write some function to clear all text from netbeans console
1 ответ
- 1
Use the class ProcessBuilder and pass it a command like 'clear' (if you are in a Linux or Mac) or 'cls' (if you are on Windows).
https://docs.oracle.com/javase/6/docs/api/java/lang/ProcessBuilder.html