java int类型转换成String,不足10位在前面补0 2017-05-09- 2022-08-25 JAVA-JAVA基础String.format(“%010d”, 25); 0代表前面要补的字符 10代表字符串长度 d表示参数为整数类型 Post author: Terry Tian,tiantsing@126.comPost link: http://tianqing.work/2017/05/09/java-int%E7%B1%BB%E5%9E%8B%E8%BD%AC%E6%8D%A2%E6%88%90String-%E4%B8%8D%E8%B6%B310%E4%BD%8D%E5%9C%A8%E5%89%8D%E9%9D%A2%E8%A1%A50/Copyright Notice: All articles in this blog are licensed under unless otherwise stated.
GitHub IssuesGitHub Discussions