您当前的位置: 首页 > 

将数字格式化为指定长度的字符串

梁云亮 发布时间:2020-04-03 11:20:55 ,浏览量:2

public class NumberUtil {
 static String format(int num, int length) {
        StringBuilder sb = new StringBuilder();
        for (int i = 1; i             
关注
打赏
1688896170
查看更多评论
0.0492s