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