Shop Help

I'm making a shop for my game, I opened a Fresh thing of code for this so this is the only code I'm running, I just want to get this to work before I put it into my actual game.
anyway what the problem is, is that no matter what input I give it always sends me to the inventory... here's the code:

Simple fix (you'll really kill yourself for this one ;) ). You have int gold; , which will set the value of gold to "0". Then, all of your options (apart from else and your inventory option) require you to have enough gold. Consider using a switch instead.

Set gold as 100. Then, have a switch. For example, if the user inputs option 1, you can test whether they have enough money, then go through the function if they do, and call a function or a line of code to tell them they don't have enough if they don't.http://java-samples.com/showtutorial.php?tutorialid=327

i was going to use a switch statement then i changed my code and all that but i just realized the mistake... i set the money = to 600 not the gold... and in my regular code money is what i use for the actual money and gold is like the loot from a monster... anyway thanks for pointing out the gold thing