How can I iterate through items of a LinkedHashSet from the last item to the first one?
LinkedHashSet
This is another way:
LinkedHashSet set = ... List list = new ArrayList<>(set); Collections.reverse(list); for( T item : list ){ ... }