• Post Reply Bookmark Topic Watch Topic
  • New Topic

ArrayList containing array of objects  RSS feed

 
Gaurav Chikara
Ranch Hand
Posts: 413
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
Paul Clapham
Sheriff
Posts: 22834
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is hardly an advanced topic. Just cast from Object to Thing[], or whatever it's an array of:
 
Garrett Rowe
Ranch Hand
Posts: 1296
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!