Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- HashMap<Integer, String> map = new HashMap<>();
- map.put(1, "22");
- map.put(11, "3232");
- map.put(1, "22");
- for (Iterator<Map.Entry<Integer,String>> it = map.entrySet().iterator();it.hasNext();) {
- Map.Entry<Integer, String> entry = it.next();
- if(entry.getValue().equals("22")){
- it.remove();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement