mirror of
https://github.com/github/codeql.git
synced 2026-04-13 02:54:01 +02:00
9 lines
203 B
Java
9 lines
203 B
Java
class CheckOdd {
|
|
private static boolean isOdd(int x) {
|
|
return x % 2 != 0;
|
|
}
|
|
|
|
public static void main(String[] args) {
|
|
System.out.println(isOdd(-9)); // prints true
|
|
}
|
|
} |