java日常-将1变成001 捕获了一个异常 2021-04-01 129 阅读1分钟 //定义long型count为1 Long count1 =1; //实例化format,格式为“000” Format f1=new DecimalFormat("000"); //将1变为001 String count =f1.format(count1);