I am creating a monitoring application, and I need to print the information to the console, the problem is that each line is added every time I print, I want to know if it is possible to simply update the line and how.
public static void main(String[] args) {
while (true) {
System.out.println("Current processes: " + numProcesses);
}
}