I am migrating code from C # to JAVA in Netbeans for class work and I have a little problem with this; in C# I use Console.Clear
to clean command prompt and make it look readable and very interactive, but in Netbeans it doesn't have a function to clean its output, what it does have is the "Clean" with the shortcut "Control + L", I found that the "Robot" class could be used to "automate" it in a certain sense but I don't know why but the normal sequence like being canceled or crashed, nothing appears after applying a "System.out.println".
Then I would like to know if it can be done in another way (except run it by cmd using the command "java -jar path")