- 博客(1)
- 收藏
- 关注
原创 如何在给定的字符串“ABCDEFGhijklmn1234567”中获取随机的4个字符?
public static void main(String[] args) { Random random = new Random(); String str = "ABCDEFGhijklmn1234567"; for (int i = 0; i < 4; i++) { int index = random.nextInt(str.length()); System.out.println(str.charAt(index)); ...
2022-05-15 22:09:12 1394
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人