Program not Waiting for Input
Hey y'all I need your assitance. Thx in advance. After displaying "Enter name:", I expect to the program to wait for user input, but it doesn't and instead, displays "Enter email:", after which it waits user input. What I mean is that after displaying the first string, it doesn't wait for input before displaying the second string; it is after the second string is displayed that it waits for user input. Below is the code: //I had earlier instantiated scanner object being used here System.out.println("Enter name:"); String name = String.valueOf(s.nextLine());// System.out.println("Enter email:"); String email = String.valueOf(s.nextLine()); System.out.println("Enter address:");