/** * Explore several boolean operators for numeric comparison * * Created: August 2023 * @author gtowell */ public class AnalyzeNumber { public static void main(String[] args) { int num = Integer.parseInt(args[0]); boolean isPositive = num > 0; // evaluate num > 0, store result in variable // also > <= < boolean isZero = num == 0; // evaluate num == 0, store result in var boolean isNotZero = num != 0; boolean isEven = num % 2 == 0; // evaluate num % 2, check if equals 0, store System.out.println(isEven); // prints “true” or “false” double argDouble = Double.parseDouble(args[0]); } }