Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int max = 0;
- String maxValuesString = null;
- for (Map.Entry<String, List<String>> entry : map.entrySet()) {
- if(max < entry.getValue().size()) {
- maxValuesString = entry.getKey();
- max = entry.getValue().size();
- }
- }
Add Comment
Please, Sign In to add comment