// This program introduces the branch construct // and expressions yielding boolean. class IfElse { public static void main( String [ ] args ) { int i ; i = -1 ; if ( i > 0 ) { // this statement run if expression evaluates true System.out.println("i is greater than 0") ; } else { // this statement run if expression evaluates false System.out.println("i is less than or equal to 0") ; } } }