Originally posted by Jose Cisse:
...for "InventoryItem item = (InventoryItem)inventory.remove(toRemove - 1);"
i got a error message:"cannot resolve symbol - method remove(int)"...
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Originally posted by Jose Cisse:
how about i change them to...
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Originally posted by marc weber:
Did it work?
The question is still the same: What type is "inventory"? And are you calling the proper methods defined in that type?
[My Blog]
All roads lead to JavaRanch
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Originally posted by Jonathan Moore:
Hmm, sorry I didn't read it properly - I was assuming inventory was the ArrayList...
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Originally posted by Jose Cisse:
i think i defined get() method in my InventoryItem class...
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
[My Blog]
All roads lead to JavaRanch
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |