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.
The moose likes Beginning Java and the fly likes help needed in copying an Array Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "help needed in copying an Array" Watch "help needed in copying an Array" New topic
Author

help needed in copying an Array

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Hi ,

As shown i am getting data in the form of an Object Array (Object[]) from the method getData() as shown below



I am calling this method . Please let me know how can i copy / see this data .I am not clear how to implement .




Save India From Corruption - Anna Hazare.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Which do you want to do, copy or see? For copy, the java.lang.System class has a method that sounds promising.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Evan Caballero
Ranch Hand

Joined: Dec 10, 2009
Posts: 59
I made a few changes to your code, but I'm not sure this is what you want :

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Thank you very much Evan
 
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: help needed in copying an Array
 
Similar Threads
Problem adding ArrayList to List
How to write Junit test when a method returns multiple values
havin problems with Object array
Performance issue
Doubt in ArrayList's toArray function