forum

Home / DeveloperSection / Forums / Create ArrayList (ArrayList<T>) from array (T[])..

Create ArrayList (ArrayList<T>) from array (T[])..

Anonymous User 2273 04-May-2015
I have an array that is initialized like:

Element[] array = {new Element(1), new Element(2), new Element(3)};
I would like to convert this array into an object of the ArrayList class.

ArrayList<Element> arraylist = ???;

Updated on 09-May-2015
I am a content writter !

Can you answer this question?


Answer

2 Answers

Liked By