Highest grade and lowest grade print out


#1

The following link is the project I’m working on https://www.codecademy.com/courses/learn-java/projects/grades-analyzer

The following error message occurs, I don’t understand why I’m getting this:
GradeAnalyzer.java:33: error: ‘;’ expected
System.out.println(“Lowest score =” + myClassroom.get(4));
^
1 error

This is my project:

//a program that stores grades and calculates the average
import java.util.ArrayList;
public class GradeAnalyzer{
public GradeAnalyzer(){

}
public int getAverage(ArrayList grades){
if (grades.size() < 1){
System.out.println(“The ArrayList is empty”);
return 0;
}
else {
int sum = 0;
for (Integer grade : grades){
sum = sum + grade;
}
int average = sum / grades.size();
System.out.println(average);
return average;
}
}
public static void main(String args) {
ArrayList myClassroom = new ArrayList();
myClassroom.add(98);
myClassroom.add(92);
myClassroom.add(88);
myClassroom.add(75);
myClassroom.add(61);
myClassroom.add(89);
myClassroom.add(95);
GradeAnalyzer myAnalyzer = new GradeAnalyzer();
myAnalyzer.getAverage
System.out.println(“Lowest score =” + myClassroom.get(4));
System.out.println(“Highest score =” + myClassroom.get(0));

}

}


#2

Oh, I think you forgot something!
on myAnalyzer.getAverage , put (); at the end.

Errors cause errors!
(posted here so late because of a limit xd)