how to convert an array to an array list in ajva code example Example: java array to arraylist List<Element> list = Arrays.asList(array);