标签:blog os java div sp log c new app
输入结果 00000000000567 String bala="567"; 固定长度是14位,怎么循环在bala前面填充00000000000 System.out.println("---www.yq1012.com--------"); String bala = "567"; StringBuffer sb = new StringBuffer(17); sb.append(bala); while (sb.length() < 17) { sb.insert(0, 0); } System.out.println(sb.toString());
标签:blog os java div sp log c new app
原文地址:http://www.cnblogs.com/sunxun/p/3956571.html