class GrandParent { public String bother = "GrandParent"; } class Parent{ public String bother = "Parent"; } class Child extends Parent { public String bother = "Child"; public void bother( String bother ) { System.out.println( "bother " + bother ); System.out.println( "this.bother " + this.bother ); System.out.println( "super.bother " + super.bother ); // super.super is a compile error //System.out.println( super.super.bother ); } public static void main( String args[] ) { Child plays = new Child(); plays.bother( "Hi" ); } }
class Syntax { public static void main( String args[] ) { int aVariable = 5; if ( aVariable < aFloat ) System.out.println( "True" ) ; } } class Syntax { public static void main( String args[] ) { int aVariable = 5; if ( aVariable < aFloat ) System.out.println( "True" ) ; } } class Syntax { public static void main( String args[] ) { int aVariable = 5; if ( aVariable < aFloat ) System.out.println( "True" ) ; } }