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
You can do it in java 8 as follows
ArrayList list = (ArrayList)Arrays.stream(array).collect(Collectors.toList());