code: protected static String getBar(long percentage) {
          StringBuilder sb = new StringBuilder();
          sb.append(percentage);
          sb.append("% [");
          for (int i = 0; i < 100; i++) {
              if (percentage == 100 || i < percentage - 1) {
                  sb.append("=");
              } else if (i == percentage - 1) {
                  sb.append(">");
              } else {
                  sb.append(" ");
              }
          }
          sb.append("] ");
          return sb.toString();
      }
docs: Generates the progress bar for the given percentage
  
  @param percentage the progression percentage
  
  @return the progress bar as a string