import java.text.DecimalFormat;
DecimalFormat df=new DecimalFormat("000");
print(df.format(1)+".jpg")
结果是001.jpg