Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ProgressBar {
- public static void main(String[] args) throws InterruptedException {
- for (int i = 1; i <= 100; ++i) {
- System.out.print("\r%" + i + "| ");
- for (int j = 0; j < i; ++j)
- System.out.print("#");
- Thread.sleep(100);
- }
- System.out.println("\nCOMPLETED!");
- }
- }
Add Comment
Please, Sign In to add comment