diff options
Diffstat (limited to 'sem5/oop/m1/src/Main.java')
-rw-r--r-- | sem5/oop/m1/src/Main.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sem5/oop/m1/src/Main.java b/sem5/oop/m1/src/Main.java index 4ccb5a4..b7c1f42 100644 --- a/sem5/oop/m1/src/Main.java +++ b/sem5/oop/m1/src/Main.java @@ -4,10 +4,10 @@ public class Main { Student std = new Student("Julian", (short)21, "Male", (long)123213213, "COMTEK"); Uniperson hej = std; - hej.addGPA(0.32); - hej.addGPA(12); + hej.addGrade(0.32); + hej.addGrade(12); - System.out.printf("deg: %s, sem: %d, avg: %f\n", hej.getDeg(), hej.getSem(), hej.avgGPA()); + System.out.printf("deg: %s, sem: %d, avg: %f\n", hej.getDeg(), hej.getSem(), hej.getGPA()); System.out.printf("person: %s\n", std); } |