Thread
:
Weird data output
View Single Post
#
2
(
permalink
)
12-11-2007, 04:46 AM
staykovmarin
Senior Member
Join Date: Nov 2007
Location: Newport, WA
Posts: 141
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).
staykovmarin
View Public Profile
Send a private message to staykovmarin
Find all posts by staykovmarin