Home » Java » How to put values of one hash map in to another when both types are different

How to put values of one hash map in to another when both types are different

Posted by: admin July 18, 2018 Leave a comment

Questions:

MAP 1 :-

Map<String, List<Long>> prjReleaseMap = (Map<String, List<Long>>) configMap.get(PROJECTRELEASEMAP);

MAP 2 : –

Map<Long, List<Long>> newprjReleaseMap = new HashMap<>();

I want to put map 1 value in map 2 ..

Answers: