Java String Scanner input does not wait for info, moves directly to next statement. How to wait for info? [duplicate]
问题 This question already has answers here : Scanner is skipping nextLine() after using next() or nextFoo()? (16 answers) Closed 3 years ago . I am writing a simple program that prompts a user to enter a number of students, then asks the user to enter each student\'s name and score in order to determine which student has the highest score. I have written the program code and it compiles. First line asks for a number of students and waits for input. The second line is supposed to ask for a student