Skip to content

Commit

Permalink
Correct month range
Browse files Browse the repository at this point in the history
  • Loading branch information
LivInTheLookingGlass committed Aug 19, 2024
1 parent 85ce1cb commit 3275e9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion java/src/main/java/euler/p0019.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class p0019 implements IEuler {
public Object answer() {
byte answer = 0;
for (short x = 1901; x < 2001; x++) {
for (byte y = 0; y < 12; y++) {
for (byte y = 1; y < 13; y++) {
if (LocalDate.of(x, y, 1).getDayOfWeek() == DayOfWeek.SUNDAY) {
answer++;
}
Expand Down

0 comments on commit 3275e9c

Please sign in to comment.