Personal Library


#1

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>
https://www.codecademy.com/courses/learn-java/projects/grades-analyzer

<In what way does your code behave incorrectly? Include ALL error messages.>
Hey guys, for the grade analyzer, the two errors that are showing are:

GradeAnalyzer.java:9: error: size has private access in ArrayList
if(grades.size < 1){
^
GradeAnalyzer.java:15: error: size has private access in ArrayList
int average = (sum/grades.size);
^
2 errors

At this point I cannot figure out what is wrong with my code. Any suggestions>

```

Replace this line with your code.

<do not remove the three backticks above>

#2

you need to use the size() method, so grades.size() instead of grades.size


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.