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