I have the following code where I initialize my HashMap, put things into it and edit the players Inventory:
HashMap
Map prices