JAVA Write a static method named mergeMaps that takes two Maps using Strings as keys and Integers as 1 answer below »

Need your ASSIGNMENT done? Use our paper writing service to score better and meet your deadline.


Order a Similar Paper Order a Different Paper

JAVA

Write a static method named mergeMaps that takes two Maps using Strings as keys and Integers as values. The method should return a Map that uses Strings as keys and Integers as values. If the two maps passed in as parameters have no conflicts, the method should return a new Map that contains everything that is in either Map. If the two maps have a conflict, the method should return a null value.