Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void makeMeGood() {
- Integer[] keys = hashMap.keySet().toArray(new Integer[hashMap.keySet().size()]); //ад пизды какой-то...
- for (Integer i : keys) {
- for (Integer j : keys) {
- //System.out.println(i + " and " + j);
- if (hashMap.get(i) != hashMap.get(j)) {
- hashMap.remove(j);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement