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 =???;
Home / DeveloperSection / Forums / How to convert ArrayList (ArrayList<T>) from array (T[])
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 =???;
Anonymous User
09-Apr-2015