I want to print the last twenty entries only.
For an array, I would have a loop that runs from the length to (n-20). But I can't figure how to do the same for a hash map.
I just know how to loop through all the entries.
for (Map.Entry<String, Integer> entry : set)
Thanks for the help!

New Topic/Question
Reply



MultiQuote



|