/**
* 从000开始递增,比如000,下一个为001,003,……,010,直到999
*/
public static void main(String[] args) {
String str = "005";
Integer i = Integer.parseInt(str);
i = i+1;
DecimalFormat format = new DecimalFormat("000");
String formarstr = format.format(i);
System.out.println(formarstr);
String format1 = "%0" + 3 + "d";
System.out.println(String.format(format1,i));
}