Guest User

Untitled

a guest
Jun 19th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. class ProgressBar {
  2. public static void main(String[] args) throws InterruptedException {
  3. for (int i = 1; i <= 100; ++i) {
  4. System.out.print("\r%" + i + "| ");
  5. for (int j = 0; j < i; ++j)
  6. System.out.print("#");
  7. Thread.sleep(100);
  8. }
  9. System.out.println("\nCOMPLETED!");
  10. }
  11. }
Add Comment
Please, Sign In to add comment