JAVA8 从数组中随机一个元素
摘要:
Java8 从数组中随机一个元素 import java.util.Random; @Test public void randomList() { String[] li = {"中国","美国","英国","法国","德国","俄罗斯"}; Random random = new Random( 阅读全文
posted @ 2022-03-08 00:53 yan061 阅读(957) 评论(0) 推荐(0) 编辑