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 = ???;
Home / DeveloperSection / Forums / Create ArrayList (ArrayList<T>) from array (T[])..
Element[] array = {new Element(1), new Element(2), new Element(3)};
ArrayList<Element> arraylist = ???;
Anonymous User
09-May-2015Anonymous User
04-May-2015