I think perhaps you're going about this the wrong way.
Here's what you should do.
Have a GPA class. (You should need only 1 class).
You can have a GPA in each class.
You can use an array...
Type: Posts; User: javapenguin
I think perhaps you're going about this the wrong way.
Here's what you should do.
Have a GPA class. (You should need only 1 class).
You can have a GPA in each class.
You can use an array...
I think I might know. You need to call setGrade() somewhere.
Maybe like this:
private double grade;
public GPA(double grade)
{
this.grade = grade;
setGrade(grade);
}