Is there a way to use the toArray()
method on an ArrayList<CustomObject>
?
From what I see, it can only be used with Object
feedback
|
You need to pass in an array of
| |||
feedback
|
Use:
| |||
feedback
|
CustomObj[] customArray = new CustomObj[size]; customArray = (CustomObj[])ArrayListObj.toArray(customArray); | |||
feedback
|
ArrayList<T>.toArray()
... – Oli Charlesworth Nov 16 '11 at 0:58