Browse Source

fixed hashcode

Trinh Tong 7 years ago
parent
commit
1c69dd89fa

+ 1
- 1
src/main/java/rocks/zipcode/io/quiz4/objectorientation/Student.java View File

@@ -37,6 +37,6 @@ public class Student {
37 37
 
38 38
     @Override
39 39
     public int hashCode() {
40
-        return Objects.hash(id, getTotalStudyTime());
40
+        return Objects.hash(getTotalStudyTime());
41 41
     }
42 42
 }