package test.store; public class Hello implements Runnable { //---------- Initialization ------------------------------ public Hello() { print("Hello class instantiated"); } public static void main(String args[]) { Runnable test = (Runnable)new Hello(); test.run(); } //---------- Run Implementation -------------------------- public void run() { print("Hello.run() called"); // Test ability to load from same class loader Worker worker = new Worker(); worker.startWorking(); print("Test complete"); } //---------- Private Methods ----------------------------- //--- Std private static void print(String text) { System.out.println(text); } } // End class