How To Write Slot Machine Program

Java Slot Machine closed Ask Question Asked 6 years. I'm supposed to make a slot machine and I can't get the continue to work, I get that the scanner nextLine method skips over the line and keeps what was there but it won't let me enter anything and it just ends the program. I also have to split this method up and make it 30 lines or less.

Write

Slot Machine How To Win

How do slots machines work

How A Slot Machine Works

I was desperate to fix and finish this code because I just don't know what's wrong with it and others I've asked can't seem to figure it out either. It's also not on my own computer so I had to take a picture of it and type it on my phone.
Well if you take what I have already, the code takes the number of quarters the user has chosen and sets that as the starting amount that is in the jar. I want that number to be between 1 and 1000 and for the program to say 'invalid amount', or something along those lines, if the amount is below 1 or above 1000.
It then asks the amount of times slot machine 1, slot machine 2, and slot machine 3 have been played since last payout. I enter a number of different sets of three numbers for the three machines and it gives me the same number each time, which I know the number is wrong.
There's a chart that was written up with the program. I'll add it to see if this helps to understand my problems better.
#of coins in the jar: 50
Times machine #1 has been played since last payout: 5
Times machine #2 has been played since last payout: 50
Times machine #3 has been played since last payout: 5
Total #of times played until she is broke: 68
So as one example: Martha has 50 quarters in her jar. Machine 1 has already been played 5 times, machine 2 has been played 50 times and machine 3 has been played 5 times. She played 68 times before she became broke.