Guest User

Untitled

a guest
Jul 18th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. int max = 0;
  2. String maxValuesString = null;
  3. for (Map.Entry<String, List<String>> entry : map.entrySet()) {
  4. if(max < entry.getValue().size()) {
  5. maxValuesString = entry.getKey();
  6. max = entry.getValue().size();
  7. }
  8. }
Add Comment
Please, Sign In to add comment