- 博客(1)
- 收藏
- 关注
原创 List取随机
List list=new ArrayList<>(); Random random = new Random(); int n = random.nextInt(list.size()); System.out.println(list.get(n));
2019-01-10 17:22:01 362
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
List list=new ArrayList<>(); Random random = new Random(); int n = random.nextInt(list.size()); System.out.println(list.get(n));
2019-01-10 17:22:01 362
TA创建的收藏夹 TA关注的收藏夹
TA关注的人