forum

Home / DeveloperSection / Forums / How to convert ArrayList (ArrayList<T>) from array (T[])

How to convert ArrayList (ArrayList<T>) from array (T[])

Royce Roy179109-Apr-2015

I have an array that is initialized like:

Element[] array ={newElement(1),newElement(2),newElement(3)};

I would like to convert this array into an object of the ArrayList class.

ArrayList<Element> arraylist =???;

Updated on 09-Apr-2015

Can you answer this question?


Answer

1 Answers

Liked By