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