private static void appendDigits(final StringBuffer buffer,final int value){
  buffer.append((char)(value / 10 + '0'));
  buffer.append((char)(value % 10 + '0'));
}

private static void appendDigits ( final StringBuffer buffer , final int value ) { buffer . append ( ( char ) ( value / 10 + '0' ) ) ; buffer . append ( ( char ) ( value % 10 + '0' ) ) ; }
appends digits to the given buffer .
