How to print vertical progress bar in console using Java? [closed]
How can we print a vertical progress bar in terminal console or command prompt using Java? A horizontal bar looks like this:
user#java PrintHorizontalProgressBar
5%#####
I want to print same progress bar but vertically.
Did you try to use System.out.println("*")
? It is a sort of vertical progress bar.
for (int i = 0; i < maxProgress; i++) System.out.println("#");
[EDIT] Honestly, it was half a joke. I am not sure to see the usefulness of such progress bar... Now, to make my answer more useful, I think you might want to take a look at the Jansi project, it allows cross-platform handling of Ansi codes, including on the non-Dos Windows consoles that doesn't handle them easily.
精彩评论