Thu Oct 23, 2008 12:12 am
Could you please explain me the following declaration. Collection is very
complicated for me.
Map<Object, ? super ArrayList> m = new LinkedHashMap<Object, ArrayList>()
What is the meaning of "?" ?
Thu Oct 23, 2008 12:13 am
? super ArrayList means you can use any super type of Arraylist.
Map<Object, ArrayList>
Map<Object, List>
Map<Object, Object>
all these are available for declaration.
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.