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

8th Jan 2019, 12:14 AM
Bodi4
Bodi4 - avatar
1 Odpowiedź
- 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
8th Jan 2019, 12:35 AM
Ulisses Cruz
Ulisses Cruz - avatar