/********************************************* * Author: Eric Heim * Date Created: 5/31/2011 * Course: CS0007 * Description: Shows the basic functionality * of the if statement *********************************************/ public class IfStatement { public static void main(String[] args) { if(true) System.out.println("This will appear because the condition " + "is true"); if(false) System.out.println("This will not appear because the " + "condition is false"); } }