NoSuchElementException Issue
问题 What I am trying to do is to create a while loop where a program menu is run from until the user inputs a valid response. However the scanner instance I have created does not want to play ball and keeps throwing NoSuchElementExceptions no matter what I have tried. import java.util.Scanner; public class Menu { Menu() { isValid = false; uInput = 0; } public int mMain() { Scanner in2; do { in2 = new Scanner(System.in); //For user input System.out.println("Please choose from the following options