I'm taking in a numeric input from a user using the scanner class. But after the calculation has completed I want to return to the initial prompt for input.
//get user input
Scanner user_input = new Scanner(System.in);
String fibMaxNum;
System.out.println("Enter the highest fibonacci number: ");
fibMaxNum = user_input.next();
Does anyone know how I can acheive this in code?
I've tried to return the control to the initial input by adding a return
statement but this has no effect.