Java tutorial
//package com.java2s; public class Main { public static final String NUMBER_FORMAT = "%01d"; public static String numberToString(int value) { return String.format(NUMBER_FORMAT, value); } }