I have a set of unique elements (there are not two identical elements). And I would like to extract N random and different elements from the set. What is the easiest ...
The SCJP6 study guide I am using states that "Your good friend the equals() method determines wheter two objects are identical (in which case only one can be in the set)" The code I've written below is not following the above statement as far as I can see. There must be something obviously wrong with my code but I can't see ...