aboutsummaryrefslogtreecommitdiff
path: root/sem5/oop/m1/src/Main.java
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2020-09-03 10:40:36 +0200
committerJulian T <julian@jtle.dk>2020-09-03 11:22:28 +0200
commitba5f68924664b081aab1abb62c68e2fb70bdff0b (patch)
treee0efc49bcad596871c927b3649ef2efa57adb1d7 /sem5/oop/m1/src/Main.java
parent9ca3b52ba5cde24691b78f4c28b32897f133b259 (diff)
Solve assignment /sem5/oop/m1 correctly
Diffstat (limited to 'sem5/oop/m1/src/Main.java')
-rw-r--r--sem5/oop/m1/src/Main.java6
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);
}