private ArrayList<Student> students;
public void loadFromFile(String x){
try {
FileReader reader = new FileReader(x);
Scanner in = new Scanner(reader);
int lineNumber = 1;
while (in.hasNextLine())
{
String name = in.nextLine();
int score = in.nextInt();
students.add (new Student(name, score));
lineNumber++;
}
in.close();
Hey Guys i am getting unknown errors when trying to read students name and score from a file and store in an arraylist. Could I please get some information as to what these errors mean and ideas how to fix? Thanks in advance!