View Single Post
  #2 (permalink)  
Old 12-11-2007, 04:46 AM
staykovmarin staykovmarin is offline
Senior Member
 
Join Date: Nov 2007
Location: Newport, WA
Posts: 141
staykovmarin is on a distinguished road
Code:
System.out.println( "test: " + e1 ) ;
You are printing out the class, not any of the data in it.
Code:
System.out.println( "test: " + e1.name)
That will only work if the main class is in the same package as everything else (since name is protected).
Reply With Quote