Uko Uko - 1 month ago 21
Java Question

Any implementation of Ordered Set in Java?

If anybody is familiar with Objective-C there is a collection called

that acts as Set and its items can be accessed as an Array's ones.

Is there anything like this in Java?

I've heard there is a collection called
LinkedHashMap
, but I haven't found anything like it for a set.

Answer

Take a look at LinkedHashSet class