Porque isso não funciona?
TreeSet dezenas = new TreeSet();
double dezenaTemporaria;
dezenaTemporaria = Math.random() * 100;
dezenas.add(dezenaTemporaria);
pelo javac dá o seguinte erro:
“Note: NumeroQuinaSet.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.”
no Eclipse dá o seguinte warning:
“Type safety: The method add(Object) belongs to the raw type TreeSet.
References to generic type TreeSet<E> should be parameterized”