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
new ArrayList(Arrays.asList(myArray));
Make sure that myArray is the same type as T. You'll get a compiler error if you try to create a List from an array of int, for example.
myArray
T
List
int