void zeroPad2 ( StringBuilder b , int value , int width ) { switch ( width ) { case 2 : if ( value < 10 ) { b . append ( ' ' ) ; } // fall through case 1 : b . append ( value ) ; break ; } }
Format 2 - digit number with 0 - padding .