This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
When you call toString() on an array reference, it gives a String representation of the array object itself -- not the contents of the array.
The implementation of toString() is inherited from java.lang.Object, so you can check the API to see why you're getting things like "[LPerson;@10b30a7."
To get the array's contents, you need to iterate through the array and call toString() on each element in the array.
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer sscce.org
Norm Radder
Ranch Hand
Joined: Aug 10, 2005
Posts: 681
posted
0
If you are going to use the toString method, you'll also want to write/override the toString() method for your Person class to format the object's contents in some way. Otherwise you'll get something like you got for the employee array. [ July 28, 2008: Message edited by: Norm Radder ]