// Author: Kiri Wagstaff, wkiri@cs.cornell.edu // Date: June 27, 2001 // Example of if statement public class Conditional { public static void main(String[] args) { boolean myBoolean = true; if (myBoolean) { System.out.println("Yes, it's true!"); } if (myBoolean) { System.out.println("It's still true!"); } else { System.out.println("No, it's false!"); } } }