You don't have a "main" method to even run the program? Once you do, your program will work fine(I've already tried it).
Add this method to your code:
public static void main(String[] args)
{
Student s = new Student();
s.inputGrades();
System.out.println("Average --> " + s.getAverage());
System.out.println("Letter grade --> " + s.letterGrade());
System.out.println("s.toString() --> " + s.toString());
}
Remember that you MUST call those methods, they won't run themselves.
Reputation Points: 113
Solved Threads: 19
Postaholic
Offline 2,108 posts
since Jun 2004