code: public static void append2digits(StringBuffer buf,int i)
      {
          if (i<100)
          {
              buf.append((char)(i/10+'0'));
              buf.append((char)(i%10+'0'));
          }
      }
docs: /* ------------------------------------------------------------