Java ArrayList. Even if I put in a input.nextLine thescanner doesn’t read in second first name
Ex:
Hannah Sayer
A
Breck Covens
B
Will not read in Break
do
{
String name = input.nextLine();
char grade = input.next().charAt(0);
//input.nextLine)(); Even if I put this it doesn’t read infirst name of student
Student studentInfo = new Student(name, grade);
list.add(studentInfo);
}while(!(input.next().equals(DONE)));
Expert Answer
An answer will be send to you shortly. . . . .