It's not a secret anymore!
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
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How to return an array and display them?
 
Similar Threads
Passing Array of objects to a different class
Updated MulitThreads Problem
Recursion and MergeSort : How is it working ?
Using Arrays
Sorting an array