code: public static String toPaddedNumber(int value, int width) {
  		StringBuilder s = new StringBuilder("00000000").append(Integer.toString(value));
  		return s.substring(s.length() - width);
  	}
docs: Create the string representation of an integer and pad it to a particular width using leading zeroes.
  
  @param value the value to convert to a string
  @param width the width (in chars) that the resultant string should be
  @return the padded string