Hi again all, I was wondering if some one could help me.
What I'm tring to do is compare elements in an ArrayList. I must use the method signature and the ArrayList stock.add(item) but the rest of the body I can change (as long as it is not to advanced yet).
Any help on pointing me in the right direction on how to compare these different object id's would be great
If you don't go out on the limb, you'll never get the whole tree
Does getID() really exist(check spelling) in that class and what is its visibility modifiers?
Check the ArrayList class in the java docs and see for yourself.
Don't declare variables inside loops. Otherwise, they get redeclared everytime through the loop. Instead, declare them outside the loop, and then make assignments to them inside the loop. [ November 10, 2006: Message edited by: sven studde ]