BAEL-5560 - quick fix for negative numbers
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user