CS202 Java-135
l
lif (creditsEarned >= 90)
l  System.out.println(“Senior Status”);
l
lelse if (creditsEarned >= 60)
l  System.out.println(“Junior Status”);
l
lelse if (creditsEarned >= 30)
l  System.out.println(“Sophomore Status”);
l
lelse
l  System.out.println(“Freshman Status”);
Example of If statements
(same use of {}, if and else)