编写一个程序,获取10个1-20之间的随机数,要求随机数不能重复,并在控制台输出
public class SetDemo {
public static void main(String[] args) {
//创建Set集合对象
// Set<Integer> set = new HashSet<Integer>(); 无序
Set<
编写一个程序,获取10个1-20之间的随机数,要求随机数不能重复,并在控制台输出
public class SetDemo {
public static void main(String[] args) {
//创建Set集合对象
// Set<Integer> set = new HashSet<Integer>(); 无序
Set<