import java.util.HashSet;
class ListaAleatoria {
public static void main(String args[]) {
HashSet t=new HashSet();
// 5 numeros aleatorios entre 0 y 49 sin repeticion
while (t.size()<5) {
Integer al=new Integer(new java.util.Random().nextInt(50));
t.add(al);
}
java.util.List lista=new java.util.ArrayList(t);
java.util.Collections.sort(lista);
// Se muestran los resultados
java.util.Iterator it=lista.iterator();
while (it.hasNext()) {
System.out.println((Integer)it.next());
}
}
}
class ListaAleatoria {
public static void main(String args[]) {
HashSet t=new HashSet();
// 5 numeros aleatorios entre 0 y 49 sin repeticion
while (t.size()<5) {
Integer al=new Integer(new java.util.Random().nextInt(50));
t.add(al);
}
java.util.List lista=new java.util.ArrayList(t);
java.util.Collections.sort(lista);
// Se muestran los resultados
java.util.Iterator it=lista.iterator();
while (it.hasNext()) {
System.out.println((Integer)it.next());
}
}
}
LuckyClub Casino Site - Lucky Club Live Casino
ResponderEliminarLuckyClub casino site is a trusted online gambling website. It luckyclub provides sports and poker to the best player and team in the world! Lucky Club is powered by a