public class Question1 { public static boolean isOdd(int i) { return i % 2 == 1; } public static boolean isTrulyOdd(int i) { return i % 2 != 0; } public static void main(String[] args) { System.out.println("The method claims it is "+isOdd(-3)+" that -3 is odd"); //q1b(); //q1c(); } public static void q1b() { double i = Double.POSITIVE_INFINITY; while (i == i+1) {} } public static void q1c() { double i = Double.NaN; while (i != i) {} } }