Originally posted by Manish Kumar:
I also got error with JDK1.3
In your println() I am not sure if it is correct to access the inner class by the class name as the class itself is not static? I think you must access the inner class by its instance name. If you change the println() as follows everything compiles and runs correctly.
Can anyone else explain better why the original code doesn't work?
HTH
Alex