摘要: DecimalFormat df = new DecimalFormat("00000000"); id = df.format(1); 例如: 000001 000010 要获取这样的数据,后面是累加的数字,当自动补全前面的0 阅读全文
posted @ 2022-10-23 11:03 阿迪di 阅读(364) 评论(0) 推荐(0) 编辑
摘要: 去掉字符串后面所有的0 String t = str.replaceAll("0+$", ""); 成对去掉字符串后面所有的0 String str = "9800101092200000"; String t = str.replaceAll("0+$", ""); System.out.prin 阅读全文
posted @ 2022-10-23 10:54 阿迪di 阅读(1414) 评论(0) 推荐(0) 编辑
Title