版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/coderALEX/article/details/78803901
int i = 1;
String str = new DecimalFormat("0000").format(i);
//则str=“0001”;
int i = 1;
String str = new DecimalFormat("0000").format(i);
//则str=“0001”;