Java while loop terminates after one interation with scan.nextLine(); method
问题 I am a beginning Computer Science student and currently stuck with one problem. It's a simple program that asks the user for a number x , then solves a Polynomial equation for that number. Afterwards, it is supposed to ask the user if he wants to continue, and if so, a new number for x is prompted. However, this program only asks the user for x once, and then terminates after evaluating the Polynomial. It even prints Continue? but doesn't even wait to read in the next line, it seems to