When the following method is executed it determines the values of add or even only for
+ve integers and not for -Ne integers. Because when we do modulo of -Ve odd numbers we get a remainder of -1 and not 1.
public static boolean isOdd(int i) {
return i%2==1;
}