System.out.print("Enter the student's name: ");
name = input.nextLine();
System.out.print("Enter the id: (exactly 8 digits): ");
id = input.nextInt();
if ((id / LOGIN_ID_DIGITS) > 10 || (id / LOGIN_ID_DIGITS) < 1)
{
System.out.println("***You did not enter an 8 digit id.\n");
continue;
}
System.out.print("Enter the address: ");
address = input.nextLine();
Student s = new Student(name, id, address, 0, 0.0);
My program will not let me enter string input. It reads the input as ("Enter the id: (exactly 8 digits): "). The integer input is fine.