- 博客(1)
- 收藏
- 关注
原创 【从1~100个数字中随机获取7个不重复的数字(java实现)】
import java.util.HashMap;import java.util.Map;public class Main {public static void main(String[] args) {Map<Integer, Integer> map = new HashMap<>(); while (map.size() != 7) { Integer key = (int) (Math.random() * 36) + 1; if (!map.cont
2022-01-21 13:58:00 1521
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人