@@ -0,0 +1,714 @@
+/*%0A%09Demonstrate the if.%0A%09%0A%09Call this file IfDemo.java.%0A*/%0Aclass IfDemo %7B%0A%09public static void main(String args%5B%5D) %7B%0A%09%09int a, b, c;%0A%09%09%0A%09%09a = 2;%0A%09%09b = 3;%0A%09%09%0A%09%09if(a %3C b) System.out.println(%22a is less than b%22);%0A%09%09%0A%09%09// this won't display anything%0A%09%09if(a == b) System.out.println(%22you won't see this%22);%0A%09%09%0A%09%09System.out.println();%0A%09%09%0A%09%09c = a - b;%09// c contains -1%0A%09%09%0A%09%09System.out.println(%22c contains -1%22);%0A%09%09if(c %3E= 0) System.out.println(%22c is non-negative%22);%0A%09%09if(c %3C 0) System.out.println(%22c is negative%22);%0A%09%09%0A%09%09System.out.println();%0A%09%09%0A%09%09c = b - a;%09// c now contains 1%0A%09%09%0A%09%09System.out.println(%22c contains 1%22);%0A%09%09if(c %3E= 0) System.out.println(%22c is non-negative%22);%0A%09%09if(c %3C 0) System.out.println(%22c is negative%22);%0A%09%7D%0A%7D%0A

Create IfDemo.java