/********************************************* * Author: Eric Heim * Date Created: 5/31/2011 * Course: CS0007 * Description: Shows the basic functionality * of the if statement *********************************************/ public class CharacterComparison { public static void main(String[] args) { char ch = 'A'; if(ch == 'A') { System.out.println("ch is equal to A"); } if('A' < 'B') { System.out.println("A is less than B"); } if('a' > 'B') { System.out.println("a is greater than B"); } } }