This week's giveaway is in the Spring forum.
We're giving away four 3 month subscriptions to Marco Behler Videos and have Marco Behler on-line!
See this thread for details.
Win a 3 month subscription to Marco Behler Videos this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Generics  RSS feed

 
yash Vi
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got the idea of imposing a constraint on linkedlist.Is the following statement legal,

LinkedList<String> list = new LinkedList<String>();
Y am I getting "(" or "[" expected error
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are using Java 5.0, right?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!