Hi.
I never worked with java's built-in collections framework, and I'm
having a bit of trouble with it.
I'm trying to pass a simple char data type into a
java.util.Linke dList, and I continue to get an incompatible type
exception (because it's expecting type Object). Is there a way I can
cast the char or set up the list so I can avoid this? I really dont
want to write a LinkedList class if one already exists.
BTW, I'm using the NetBeans IDE from the Sun website, if that means
anything.
Thanks.
I never worked with java's built-in collections framework, and I'm
having a bit of trouble with it.
I'm trying to pass a simple char data type into a
java.util.Linke dList, and I continue to get an incompatible type
exception (because it's expecting type Object). Is there a way I can
cast the char or set up the list so I can avoid this? I really dont
want to write a LinkedList class if one already exists.
BTW, I'm using the NetBeans IDE from the Sun website, if that means
anything.
Thanks.
Comment