//number,生成的数量 public static final List<String> getNumber(Long number) { List<String> x = new ArrayList<>(); String y; String password = ""; for (int i = 0; i < 8; i++) { password += String.valueOf((char) (new Random().nextInt(26) + 65)); } int num = 8;//编号的位数 for (int i = 1; i <= number; i++) { y = password + String.format("%0" + num + "d", i); x.add(y); } return x; }
02-11
546
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
07-18
376
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)