No. That's not right. The only part of the collection which you can get by index is the classes who implement the List interface (Like ArrayList). The signature of the method is: get(int index)
And if you look at the java documentation for LinkedHashSet again, you'll see that you can not find such a method for Set and its implementers.