diff --git a/src/main/java/me/alex4386/gachon/sw14462/day09/ex5_10/Movie.java b/src/main/java/me/alex4386/gachon/sw14462/day09/ex5_10/Movie.java index 2e10a7d..e86ab0f 100644 --- a/src/main/java/me/alex4386/gachon/sw14462/day09/ex5_10/Movie.java +++ b/src/main/java/me/alex4386/gachon/sw14462/day09/ex5_10/Movie.java @@ -88,5 +88,8 @@ enum MovieMPAARating { public int getRatingId() { return this.ratingId; } + public boolean equals(MovieMPAARating other) { + return this.ratingId == other.getRatingId(); + } }