I have written a Java program that loads data from a file and I am displaying the progress of the load on the command line, by printing a message to the screen after every n records, which looks like this:
$> processed 100 records.
$> processed 200 records.
$> processed 300 records.
$> processed 400 records.
$> processed 500 records.
...
However, I would like to just print ONE line, and only update the number, i.e., so that the output always just looks like this:
$> processed < n > records.
How to do this in Java and, is it even possible?