输入结果 00000000000567 String bala="567"; 固定长度是14位,怎么循环在bala前面填充00000000000 System.out.println("---www.javaweb.top--------"); String bala = "567"; StringBuffer sb = new StringBuffer(17); sb.append(bala); while (sb.length() < 17) { sb.insert(0, 0); } System.out.println(sb.toString());