A point charge q is placed at a distance 3r

Scanner nextline not waiting for input

Aug 26, 2012 · Here is my method for capturing the char: The code loops due to the try/catch block, as scan.nextLine () never waits for the next input. Without it, the exception is typically related to not finding a new line. I've tried the while (scan.hasNextLine ()) that seems to work for other people; however, once the time for input arrives, it never ...