How to hold the mutiple values of type in HashMap?

Viewed 3192

I need to create a HashMap with Single Key and it should hold multiple values of type String,ArrayList,String,ArrayList ..

ie.., Msg of type String,groupdestId of type Integer ArrayList,id of type String,userdestId of type Integer ArrayList..

HashMap<String,String> body = new HashMap<>();
body.put("message",Msg);
body.put("groupdestId",groupdestId);
body.put("id",id); 
body.put("destId",userdestId);
3 Answers
Related