Advertisement
Jgug

Shit_01

Nov 10th, 2014
489
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.26 KB | None | 0 0
  1.         for (Integer i : hashMap.keySet()) {
  2.             for (Integer j : keys) {
  3.                 //System.out.println(i + " and " + j);
  4.                 if (hashMap.get(i) != hashMap.get(j)) {
  5.                     hashMap.remove(j);
  6.                 }
  7.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement