public static void main(String[] args) {
Set<Integer> set=new HashSet<Integer>();
while(set.size()<10) {
int randomInt=(int)(Math.random()*100+1);
set.add(randomInt);
}
System.out.println(set);
}
public static void main(String[] args) {
Set<Integer> set=new HashSet<Integer>();
while(set.size()<10) {
int randomInt=(int)(Math.random()*100+1);
set.add(randomInt);
}
System.out.println(set);
}