import?java.util.LinkedList;
import?java.util.List;
import?java.util.Random;
< p>public?class?Test?{public?static?void?main(String[]?args)?{
new?Test().getHm(2); //입력 수
}
public?void?getHm(int?x){
for(int?j=0;jlt;x; j ){
Listlt;Integergt;?hm?=?new?LinkedListlt;Integergt;();
hm.add(0,?0);
for(int?i?=?1;?ilt;=33;i){
hm.add(i,?i);
}
< p>Random?ran?=?new?Random();int?count?=?hm.size();?
int?index;
< p>System.out.print("th" (j 1) "그룹 번호:");do{ index?=?ran.nextInt(count);
if (index?=?0){
System.out.print(hm.get(index) "?");
hm.remove(index);
count--;
}
}while(count?!=?28);
do{
index?=ran.nextInt(17);
if(index?!=?0){
System.out.println(index);
}
}while(index?==?0);
}
}
}
얼마나 상을 받고 싶은지