I want to reverse the values in the Set<String>
So, I am creating a Set<String> of keys from some HashMap And printing out the values i.e. keys.
Set<String> movies = movieList.keySet();
for(String movie : movies) {
output += movie + "\n";
}
I need to reverse the values of the Set<String> from last value to first values Is this possible?
Setare not ordered... aLinkedHashSeton the other hand...