Skip to content

Commit

Permalink
Update APCalendar.java
Browse files Browse the repository at this point in the history
  • Loading branch information
hahuang4 authored Apr 30, 2024
1 parent 46bfd37 commit 55a79d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/APCalendar.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ 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) */
int startDay=firstDayofYear(year);
int startDay=firstDayOfYear(year);
int nthDay=dayofYear(month, day, year);
int returnDay= (startDay+nthDay-1)%7;
return returnDay;
Expand Down

0 comments on commit 55a79d2

Please sign in to comment.