I have this declaration/initiation written for Java JDK 1.6
Map<String, <? extends List<?>>> groupThemTogether = new HashMap<String, ArrayList<String[]>>();
The error happens at the first comma. The error message is
Type mismatch: cannot convert from HashMap<String,ArrayList<String[]>> to Map<String,List>
Why doesn't this compile?
Map<String, ? extends List<?>> groupThemTogether = new HashMap<String, ArrayList<String[]>>();.