From ba5f68924664b081aab1abb62c68e2fb70bdff0b Mon Sep 17 00:00:00 2001 From: Julian T Date: Thu, 3 Sep 2020 10:40:36 +0200 Subject: Solve assignment /sem5/oop/m1 correctly --- sem5/oop/m1/src/Main.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sem5/oop/m1/src/Main.java') 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); } -- cgit v1.2.3