I have a Game class,Room class and an Item class for this.
The room has a hashmap and trying to put items in the room using a hashmap as well almost copying the room class. I get an error in game though when trying to access the method. In game it errors on the second line
I assume this a compiler error "cannot find symbol-variable item command". It indicates that you are trying to reference a variable that has not been defined i.e. "item command". Where is the "itemCommand" String defined that is used in this line;
Please don't send anybody any zipped files; we want all discussion to be on the forum. Have you posted the exact code you are using; there is nothing which would suggest such an error in what you have posted, and you cannot get an error message saying it can't find "item command" as two words. Most likely explanation is that there is a tiny spelling error somewhere; try copying the parameter identifier into the get call arguments with ctrl-C ctrl-V.