Come on!!!
Can't you read error messages and trace?
Quote:
Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - missing return statement
It means you have a method somewhere that does not return a value, but should...So it can not be compiled...
Quote:
at javaapplication19.Student.getGPA(Student.java:52)
This one tells you where you missed the return...
Now looking into getGPA...
public double getGPA() {
for (int i = 0; i < number; i++) {
return GPA;
}
}
Now, who told you it will enter the for loop?