I have a java application which run on cmd
. I want to show progress while running this process. In this application 50 branches processing and I want to show after processed one branch 2% completed and after another branch processed 4% completed and so on.
Problem is when I used
System.out.print("PROGRESS :" + branch_Vec.get(value).toString()+" : "+ df2.format(((a / total) * 100)) +" % \r");
as a out put it goes to new line each time it calls.
I want to show progress in same line.For example:
progress : AB : 2%