how to print output on same line in 'while loop'?
I have a 'while loop' that prints on a new line everytime;
system.out.println("bla bla bla:" + N)
output i have:
count 3......and so on
what i want to do is print on the same line and display the count in real time,
instead of on a new line.
using 'print' instead of 'println' prints every thing all in one long line.
I imagine i could clear/erase the line and print a new line in the 'while loop'
but not sure how to do that.
output i want:
count x: have the numbers change in realtime instead of on a new line.
right now it's a command line program but want to update to a gui/pop up box.