BAEL-5560 - quick fix for negative numbers

This commit is contained in:
tudor.marc 2022-06-30 10:22:11 +03:00
parent 1e14712bf0
commit ffe5873397

View File

@ -7,7 +7,7 @@ public class EvenOdd {
} }
static boolean isOdd(int x) { static boolean isOdd(int x) {
return x % 2 == 1; return x % 2 != 0;
} }
static boolean isOrEven(int x) { static boolean isOrEven(int x) {