We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71cc0bf commit 21ff059Copy full SHA for 21ff059
Map-1/mapAB2.java
@@ -0,0 +1,8 @@
1
+public Map<String, String> mapAB2(Map<String, String> map) {
2
+ if(map.containsKey("a") && map.containsKey("b") && map.get("a").equals(map.get("b")))
3
+ {
4
+ map.remove("a");
5
+ map.remove("b");
6
+ }
7
+ return map;
8
+}
0 commit comments