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()
If you are going to do lots of random accesses by index in a set, you can get an array view of its elements:
Object[] arrayView = mySet.toArray();
//do whatever you need with arrayView[i]
There are two main drawbacks though: