/* Author : Michael Robinson Program : if_else_if.java Purpose : To show how Java processes the if else if statements Updated : April 26, 2099 */ public class if_else_if { public static void testIt( double temperature ) { if( temperature > 80 ) { System.out.println( " Oh man it is hot!!" ); } else if( temperature > 32 ) { System.out.println( " Summer time is gone!!" ); } else { System.out.println( " Oh man it is freezing!!" ); } }//end public static void testIt( float temperature ) public static void main( String arg[] ) { testIt( 31.9 ); } }//end public class if_else_if