Question 9 0 pts Give a map of key, values pairs modify and return the map as follows: if the key "a" has a value, set t
Posted: Thu May 05, 2022 12:50 pm
JAVA
Question 9 0 pts Give a map of key, values pairs modify and return the map as follows: if the key "a" has a value, set the key "b" to have that same value. In all cases remove the key "c", leaving the rest of the map unchanged. • mapShare({"a": "aaa", "b": "bbb", "c": "ccc"})→{"a": "aaa", "b": "aaa"} mapShare({"b":"xyz", "c": "ccc"])→ {"b": "xyz"] . mapShare({"a": "aaa", "c": "meh", "d": "hi"})→{"a": "aaa", "b": "aaa". "d": "hi") Edit View Insert Format Tools Table 12pt P Paragraph B IU A 2 O words <>!
Question 9 0 pts Give a map of key, values pairs modify and return the map as follows: if the key "a" has a value, set the key "b" to have that same value. In all cases remove the key "c", leaving the rest of the map unchanged. • mapShare({"a": "aaa", "b": "bbb", "c": "ccc"})→{"a": "aaa", "b": "aaa"} mapShare({"b":"xyz", "c": "ccc"])→ {"b": "xyz"] . mapShare({"a": "aaa", "c": "meh", "d": "hi"})→{"a": "aaa", "b": "aaa". "d": "hi") Edit View Insert Format Tools Table 12pt P Paragraph B IU A 2 O words <>!