I have an array that is initialised 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 = ???;
I am sure I have done this before, but the solution is sitting just at the edge of my memory.