Skip to content

Commit

Permalink
Clear security problems
Browse files Browse the repository at this point in the history
  • Loading branch information
LivInTheLookingGlass committed Aug 19, 2024
1 parent 66bf210 commit 85ce1cb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions java/src/main/java/euler/p0019.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ public class p0019 implements IEuler {
@Override
public Object answer() {
byte answer = 0;
for (short x = 1901; x < 2001; x += 1) {
for (byte y = 0; y < 12; y += 1) {
for (short x = 1901; x < 2001; x++) {
for (byte y = 0; y < 12; y++) {
if (LocalDate.of(x, y, 1).getDayOfWeek() == DayOfWeek.SUNDAY) {
answer += 1;
answer++;
}
}
}
Expand Down

0 comments on commit 85ce1cb

Please sign in to comment.