File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes help needed in copying an Array Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
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
 
 
subject: help needed in copying an Array
 
Similar Threads
havin problems with Object array
Problem adding ArrayList to List
How to write Junit test when a method returns multiple values
Performance issue
Doubt in ArrayList's toArray function