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