Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Joined: Jul 17, 2005
Jul 24, 2005 08:57:00
I got the idea of imposing a constraint on linkedlist.Is the following statement legal,
> list = new
Y am I getting "(" or "[" expected error
Thanks for your reply and time.<br />Windows 2000,j2sdk1.4.2_08
Joined: Aug 03, 2002
Jul 24, 2005 09:56:00
You are using Java 5.0, right?
Ask a Meaningful Question
Getting someone to think and try something out is much more useful than just telling them the answer.
I agree. Here's the link:
Map within a List
generics and maps
List Vs LinkedList
Best implementation for Queue interface.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013