So why are you using a set? Have you found out what sort of data structure a Set is. What's more, you can't iterate a set with an ordinary for loop.
Francis Oswald wrote:. . . lists 100 numbers (1-100) in a row. . . .
Campbell wrote: So why are you using a set?
Campbell Ritchie wrote:...but it is easier to create a List 0...99 and shuffle it.
why is this not working
Norm Radder wrote:Please explain. What does the code do now? What do you want it to do differently?
I get error messages
Please show us what you are actually running. There are at least three compile time errors in that code.
Francis Oswald wrote:Here's the code: . . .
"count can not be resolved to a variable"
Campbell Ritchie wrote:Why are you using an array of arrays rather than an ordinary array?
Piet Souris wrote:@OP
in your opening post, you ended with a nice code snippet, using a TreeSet. What happened to that snippet?