Convert Array to ArrayList using Java. This video shows how to convert the Array to ArrayList. First I show how newbies do it and then I show the better method.
Arrays.asList() will return an ArrayList which is a private static class inside Arrays. But it does not have any methods for adding elements. So its size is fixed.
Better method is passing the Arrays.asList() as constructor parameter.
Tags: Convert Array to ArrayList using Java, java, mistakes, convert, array, arraylist