Sign up for Free !!
World's first open source developer community with
Ticketing System
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
ArrayList<Element> arraylist = ???;
new ArrayList<>(Arrays.asList(array));
Please Login/Register to write your answer !!!