Advertisement
Jgug

Shit_02

Nov 10th, 2014
500
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.41 KB | None | 0 0
  1.     public void makeMeGood() {
  2.         Integer[] keys = hashMap.keySet().toArray(new Integer[hashMap.keySet().size()]);  //ад пизды какой-то...
  3.  
  4.         for (Integer i : keys) {
  5.             for (Integer j : keys) {
  6.                 //System.out.println(i + " and " + j);
  7.                 if (hashMap.get(i) != hashMap.get(j)) {
  8.                     hashMap.remove(j);
  9.                 }
  10.             }
  11.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement