r/javahelp•
plafiff

help with a method

I would like some help with my pickIns(double deductions) method. Here is the CODE. I know this could probably be done better with a while loop, but my book hasn't got to loops yet so I was trying to do it without. I want the method to prompt the user for an input of 1, 2, or 3 and keep prompting until the user enters 0 or any other invalid options (which it does). The problem occurs when it tallies up the total deductions. It can correctly add up the total inside the method and returns the total upon an entry of 0. I just can't get the correct total to leave the method and return it to main. Is there anyway I can do this in its current form? Thanks for any advice!

Posted Jun 10, 2016, 4:56 AM UTC

32
Loading comments…