public static StringBuffer appendNumber(StringBuffer result,int n,int radix,int minDigits) throws IllegalArgumentException {
  if (radix < 2 || radix > 36) {
    throw new IllegalArgumentException("Illegal radix " + radix);
  }
  int abs=n;
  if (n < 0) {
    abs=-n;
    result.append("-");
  }
  recursiveAppendNumber(result,abs,radix,minDigits);
  return result;
}

public static StringBuffer appendNumber ( StringBuffer result , int n , int radix , int minDigits ) throws IllegalArgumentException { if ( radix < 2 || radix > 36 ) { throw new IllegalArgumentException ( "Illegal radix " + radix ) ; } int abs = n ; if ( n < 0 ) { abs = - n ; result . append ( "-" ) ; } recursiveAppendNumber ( result , abs , radix , minDigits ) ; return result ; }
append a number to the given stringbuffer in the given radix . standard digits ' 0 ' - ' 9 ' are used and letters ' a ' - ' z ' for radices 11 through 36 .
