This sounds like a really dumb question, but all Google results on the first pages either:
- Use a 3rd party library
- Use an explicit loop
- Return a
List<Object>
instead ofList<YourType>
- Answer the reversed question of converting an
ArrayList
toSet
What's the best way to convert a LinkedHashSet
to an ArrayList
while avoiding all of the above?