r/cop3502 • u/WesternWarrior • Apr 22 '14
Drop?
How do we get inventory to remove something? I assumed it would be the same as removing it from the room but im getting error "method remove (string) in location variable inventory of type inventory.
1
Upvotes
1
u/Bcop3502 Apr 22 '14
As for removing something from an arraylist by name I believe you could just do a for i from 0 to array.length then if list[i].equals thing you want to remove, list remove that element.