public class arraylst
{
static HashMap<String,List<String>>hm;
public static void main(String[] args)
{
hm.put("2",Arrays.asList("a","b","c"));
}
}
I don't understand why this causes NullPointerException.
Can someone please help me out?
hmis null -- you never assign an object to it. Now, let's please close this question.