int tmp=1; java.text.DecimalFormat numberformat = new java.text.DecimalFormat("00000"); numberformat.format(tmp+1);