aspose file tools*
The moose likes Java in General and the fly likes How to return an array and display them? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to return an array and display them?" Watch "How to return an array and display them?" New topic
Author

How to return an array and display them?

Parka Teoh
Ranch Hand

Joined: Aug 28, 2004
Posts: 40
I have a class containing a private array. (as below)



How can I display all the items in another class by invoking the getMyArray() method?


Do you have a parka?<br /> <br /><a href="http://sg.geocities.com/inschooool" target="_blank" rel="nofollow">Visit my homepage</a> | <a href="http://parka.deviantart.com/" target="_blank" rel="nofollow">Parka Deviantart gallery</a>
David Ulicny
Ranch Hand

Joined: Aug 04, 2004
Posts: 724


SCJP<br />SCWCD <br />ICSD(286)<br />MCP 70-216
somkiat puisungnoen
Ranch Hand

Joined: Jul 04, 2003
Posts: 1312
Originally posted by Parka Teoh:
I have a class containing a private array. (as below)



How can I display all the items in another class by invoking the getMyArray() method?




SCJA,SCJP,SCWCD,SCBCD,SCEA I
Java Developer, Thailand
Parka Teoh
Ranch Hand

Joined: Aug 28, 2004
Posts: 40
Thanks guys!! Thanks a lot!!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to return an array and display them?