@@ -0,0 +1,920 @@
+package collections;%0A%0A/**%0A * static %3CT%3E List%3CT%3E asList(T... a)%0A * - Resulted List called a backed list (can update content, but can't change size)%0A * - Original array and resulted backed list point to same data store%0A */%0Apublic class ConvertArrayToArrayList %7B%0A    public static void main(String%5B%5D args) %7B%0A        String%5B%5D array = %7B%22Bos%22, %22ton%22%7D;%0A        java.util.List%3CString%3E list = java.util.Arrays.asList(array);%0A        System.out.println(list);       // %5BBos, ton%5D%0A%0A        // Can update content%0A        list.set(0, %22Dart%22);%0A        System.out.println(list);       // %5BDart, ton%5D%0A        System.out.println(array%5B0%5D);   // Dart%0A%0A        array%5B0%5D = %22Hier%22;%0A        System.out.println(list);       // %5BHier, ton%5D%0A%0A        // Can't change size%0A        list.add(%22Dot%22);        // RuntimeException: UnsupportedOperationException%0A        list.remove(0);         // RuntimeException: UnsupportedOperationException%0A    %7D%0A%7D%0A

java.util.Arrays.asList convert argument array to List