hey, I'm a beginner in Java programming.
I'm trying to do the vending machine program. And I'm having difficulty doing the do while loop.
The scenario is if the user entered invalid input 3 times, it will loop back to the first menu using do while loop and switch case. Because I still dont understand the creating a new method way.
Any helps will be appreciated.