【JAVA】生成10個1到20之間的不重複的隨機數並降序輸出

import java.util.*; /** * 生成10個1到20之間的不重複的隨機數並降序輸出 */ public class List{ public static void main(String[] args) { Random r = new Random(); HashSet<Integer> rr = new HashSet<>();
相關文章
相關標籤/搜索