code: private int skipDigits() {
          char ch;
          int i = 0;
  
          while (index < format.length()) {
              if (Character.isDigit(ch = format.charAt(index))) {
                  index++;
                  i = i * 10 + Character.digit(ch, 10);
              } else {
                  break;
              }
          }
          return i;
      }
docs: Skip digits and return the number they form.