/** * An example of if-statements * * @author William McDaniel Albritton */ public class IfStatements { /** * main method starts the program.. * * @param arguments are not used.. */ public static void main(String[] arguments) { System.out.println("beginning of program"); if(true){ System.out.println("this will ALWAYS print out"); } System.out.println("middle of program"); if(false){ System.out.println("this will NEVER print out"); } System.out.println("end of program"); } }