aspose file tools*
The moose likes Beginning Java and the fly likes first steps!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "first steps!!" Watch "first steps!!" New topic
Author

first steps!!

ranjan andrews
Greenhorn

Joined: Jun 10, 2003
Posts: 2
hello!! i am unable to display an array of objects,what i do have displayed are the memory location references contained the array.i tried the toString() method,but had the same result.i would appreciate some inputs on this thanks!!
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61221
    
  66

What types of objects are in the array? Unless the objects have defined meaningful toString() methods, the default is to generate a unique string usually including a memory reference.
hth,
bear


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Francis Siu
Ranch Hand

Joined: Jan 04, 2003
Posts: 867
hi ranjan
i am unable to display an array of objects,what i do have displayed are the memory location references contained the array.i tried the toString() method
On every object instance,toString() method should be overrided in the object class which you define,so that it can display the meaningful information which you want to display.
In which you define the object class do the following to override the default one

HTH


Francis Siu
SCJP, MCDBA
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: first steps!!