摘要:
DecimalFormat df = new DecimalFormat("00000000"); id = df.format(1); 例如: 000001 000010 要获取这样的数据,后面是累加的数字,当自动补全前面的0 阅读全文
摘要:
去掉字符串后面所有的0 String t = str.replaceAll("0+$", ""); 成对去掉字符串后面所有的0 String str = "9800101092200000"; String t = str.replaceAll("0+$", ""); System.out.prin 阅读全文