diff --git a/java/src/main/java/euler/p0019.java b/java/src/main/java/euler/p0019.java index 0acafa73..423a30ae 100644 --- a/java/src/main/java/euler/p0019.java +++ b/java/src/main/java/euler/p0019.java @@ -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++; } } }