From 3c2d96e946de83e743d1e63508f5bbdaf9b9ea08 Mon Sep 17 00:00:00 2001 From: hahuang4 <142834501+hahuang4@users.noreply.github.com> Date: Mon, 29 Apr 2024 22:48:15 -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 a55b82f..8b63a76 100644 --- a/src/main/java/APCalendar.java +++ b/src/main/java/APCalendar.java @@ -61,7 +61,7 @@ public static int dayOfWeek(int month, int day, int year) { /* to be implemented in part (b) */ int startDay=firstDayOfYear(year); - int nthDay=dayofYear(month, day, year); + int nthDay=dayOfYear(month, day, year); int returnDay= (startDay+nthDay-1)%7; return returnDay;