/* Author : Michael Robinson Program : ternaryIf.java Purpose : To show how Java processes the ternaryIf statements Updated : April 26, 2099 */ public class ternaryIf { public static void testTernaryIf( int grade ) { System.out.println( "Grade: " + (grade < 70 ? "Fail" : "Pass" ) ); }//end public static void testTernaryIf( int grade ) public static void main( String arg[] ) { testTernaryIf( 96 ); } //end public static void main( String arg[] ) }//end public class ternaryIf