I\'m sure there\'s a good reason, but could someone please explain why the java.util.Set interface lacks get(int Index), or any similar get()
java.util.Set
get(int Index)
get()
The only reason I can think of for using a numerical index in a set would be for iteration. For that, use
for(A a : set) { visit(a); }