How to go back a line?

I know Java doesn't have a goto option, but how do I go back a line? I'm trying to work a function into my code that allows the user to type exit and go back to the beginning of the program. Any help would be greatly appreciated.

https://pastebin.com/gn2mc15r

Update: Thank you all for the assistance :)

Posted Aug 17, 2017, 8:27 PM UTC · edited

37
Loading comments…