[SOLVED] Almost have my project done, just need help with one last thing.

Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.

Almost have my project done, just need help with one last thing.

Ok, so my program works fine for the most part, except for a few minor issues that I absolutely have to fix. So, let me start by explaining a few things about the program. The program is suppose to get a number from the user, then when you select one of the options from the Menu(), it will call the Method pertaining to the option the user chooses. After that Method concludes, the program should bring the Menu() back up, so that the user may use the program again. This is where my problem occurs. The program will work fine the first time an option is selected, but when the Menu() is called again, whenever the user makes a selection, the program just ends. For examples of my Methods that call the Menu() back, see lines 139, 152, 165, 185, and 108.

Re: Almost have my project done, just need help with one last thing.

Where would that need to go into my code? In every one of the methods I wrote? Because 'a' gets is the variable that holds the selection from the Menu(), so basically 'a' starts at 0, then when the Menu() is called, it is assigned either 1-4, the program calls whichever method is assigned to that number, and then the Menu() is called again, except when the Menu() is called for the second time, even if I hit a different selection, 'a' doesn't change it's value.

Re: Almost have my project done, just need help with one last thing.

Ok, thanks a lot man, I'll try that out as soon as I can and post results

--- Update ---

ok, so I added a loop to my Main(), and removed the other things from the Methods. So, I have it now to where the program loops the menu(), but it doesn't execute anything in the switch statement. Should I add the switch statement to the loop?