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