From 97d8a4571de559523c6c3251e7e7a860a6c90fb4 Mon Sep 17 00:00:00 2001 From: chyeung1 <143123817+chyeung1@users.noreply.github.com> Date: Mon, 29 Apr 2024 22:25:25 -0700 Subject: [PATCH] Update APCalendar.java --- src/main/java/APCalendar.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/APCalendar.java b/src/main/java/APCalendar.java index cbfd206..021022a 100644 --- a/src/main/java/APCalendar.java +++ b/src/main/java/APCalendar.java @@ -56,6 +56,6 @@ private static int dayOfYear(int month, int day, int year) public static int dayOfWeek(int month, int day, int year) { /* to be implemented in part (b) */ - return firstDayofYear(year) + dayOfYear(month, day, year) % 7; + return this.firstDayofYear(year) + this.dayOfYear(month, day, year) % 7; } }