| Author |
Unable to add object to array.
|
Edward Strife
Greenhorn
Joined: Mar 15, 2012
Posts: 14
|
|
When trying to add person to my list I get the cannot find symbol.
My sorted list class:
My initial list class:
|
 |
E Armitage
Ranch Hand
Joined: Mar 17, 2012
Posts: 220
|
|
I don't see a method called add in your list class.
Did you want to call the method called insert instead?
|
 |
Matthew Brown
Bartender
Joined: Apr 06, 2010
Posts: 3793
|
|
|
It's a really bad idea to name your classes after classes in the standard Java libraries - expecially ones that are commonly used. It just leads to confusion. So don't call your own class List. If you want to implement java.util.List, do that. If you don't, use a different name.
|
 |
 |
|
|
subject: Unable to add object to array.
|
|
|