@@ -0,0 +1,864 @@
+import java.util.ArrayList;%0A%0Apublic class GradeAnalyzer %7B%0A  public GradeAnalyzer() %7B%0A    %0A  %7D%0A  %0A  public int getAverage(ArrayList%3CInteger%3E grades)%7B%0A    if (grades.size()%3C1)%7B%0A      System.out.println(%22you can't input zero!%22);%0A      return 0;%0A    %7D else %7B%0A      int sum = 0;%0A      for(int i=0; i %3C grades.size();i++)%7B%0A        sum = sum+grades.get(i);%0A      %7D%0A      int average = sum/grades.size();%0A      System.out.println(%22Average %22+ average);%0A      return average;%0A    %7D%0A  %7D%0A  %0A  public static void main(String%5B%5D args)%7B%0A    ArrayList%3CInteger%3E myClassroom = new ArrayList%3CInteger%3E();%0A    myClassroom.add(98);%0A    myClassroom.add(92);%0A    myClassroom.add(88);%0A    myClassroom.add(75);%0A    myClassroom.add(61);%0A    myClassroom.add(89);%0A    myClassroom.add(95);%0A    GradeAnalyzer myAnalyzer = new GradeAnalyzer();%0A    myAnalyzer.getAverage(myClassroom);%0A    %0A  %7D%0A  %0A%7D

add grade analyzer sample code