Results 1 to 2 of 2
Thread: Pbm in Generic WildCard?
- 02-07-2011, 10:32 AM #1
Pbm in Generic WildCard?
Hi all.
I am just doing some code regarding Jave Generics Wild Card.
List<? extends Object> list=new ArrayList<String>();
list.add(new String("pandian"));
System.out.println(list);
When I compile this code.I got compilation Error. I dont know why?
If you know share it with me?Mak
(Living @ Virtual World)
- 02-07-2011, 08:07 PM #2
Similar Threads
-
Java Generic Plz Help
By amtrbz in forum New To JavaReplies: 1Last Post: 01-29-2011, 11:47 PM -
How to display WildCard search values
By peliukasss in forum LuceneReplies: 1Last Post: 08-25-2010, 02:29 PM -
Urgent Regular expression to allow only alpha characters and % wildcard
By MJoe in forum Advanced JavaReplies: 2Last Post: 06-17-2010, 12:44 PM -
generic types
By jon80 in forum New To JavaReplies: 6Last Post: 06-12-2009, 10:29 PM -
Generic methods
By andre1011 in forum Advanced JavaReplies: 7Last Post: 02-25-2009, 02:17 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks