//定义long型count为1
Long count1 =1;
//实例化format,格式为“000”
Format f1=new DecimalFormat("000");
//将1变为001
String count =f1.format(count1);
java日常-将1变成001
最新推荐文章于 2022-07-12 08:34:21 发布
//定义long型count为1
Long count1 =1;
//实例化format,格式为“000”
Format f1=new DecimalFormat("000");
//将1变为001
String count =f1.format(count1);