Example Map data = new HashMap(); data.put("a","America"); data.put("a","Africa"); data.put("b","Bangladesh");
Need to have both "America" and "Africa" as value against key "a". Is there any mechanism to achieve this scenario.
use
Map<String,List> data = new HashMap();
{a:[America,Africa] ,b:[Bangaldesh]}