aspose file tools
The moose likes Java in General and the fly likes ArrayList containing array of objects 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 » Java in General
Reply Bookmark "ArrayList containing array of objects" Watch "ArrayList containing array of objects" New topic
Author

ArrayList containing array of objects

Gaurav Chikara
Ranch Hand

Joined: Jun 09, 2000
Posts: 410
I have an arraylist whose each element is a fixed size array of object

Wwe dont have any API to retrive array of object from ArrayList
and therefore I was wondering who can we retrieve each element as an array
from arraylist

If any one has any idea please help



SCJP,SCWCD,SCBCD<br />If Opportunity doesn't knock then build the door
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 16483
    
    2

This is hardly an advanced topic. Just cast from Object to Thing[], or whatever it's an array of:
Garrett Rowe
Ranch Hand

Joined: Jan 17, 2006
Posts: 1295

We dont have any API to retrive array of object from ArrayList

We can however retrieve an Object from an ArrayList, and if that Object is an array, we can cast it to an array and use it.


Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them. - Laurence J. Peter
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: ArrayList containing array of objects
 
Similar Threads
How to convert ArrayList to String Array in java
Generic arrays
ArrayList containing array of objects
Copy existing Array into new ArrayList
Convert a String[] array