//--------------------------------------- // Sample class used in methodRef example. // The callbackable methods must take an Object // as a parameter, even if it's not used... // public class foobar { int a; public foobar( int val ) { a = val ; } // This method is called back from the driver class public void sayHello( Object o ) { System.out.println("foobar: Hello my a value is " + a); } //...and so is this one... public void sayGoodBye( Object o) { System.out.println("foobar: Goodbye my a value is " + a); } }