Course Solutions Uncategorized (Solved) : Java Arraylist Even Put Inputnextline Scanner Doesn T Read Second First Name Ex Hannah Say Q28357921 . . . .

(Solved) : Java Arraylist Even Put Inputnextline Scanner Doesn T Read Second First Name Ex Hannah Say Q28357921 . . . .

 

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. . . . .

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post