I have arrayList
List<String> li= new ArrayList<String>() ;
li.add("a");
li.add("b");
I want to convert to ArrayList to HashMap Like this
HashMap<String, List<String>> s= new HashMap<String,List<String>>();
Please help me how to convert to HashMap