日期:2014-05-20 浏览次数:20624 次
String bala = "567"; StringBuffer sb = new StringBuffer(17); sb.append(bala); while (sb.length() < 17) { sb.insert(0, 0); } System.out.println(sb.toString());