Java List from Array convertArrayToList(String[] arrayStr)

Here you can find the source of convertArrayToList(String[] arrayStr)

Description

convert Array To List

License

Open Source License

Declaration

public static void convertArrayToList(String[] arrayStr) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.Arrays;

import java.util.List;

public class Main {
    public static void convertArrayToList(String[] arrayStr) {

        //ArrayList<String> strL = (ArrayList<String>) Arrays.asList(arrayStr);
        List<String> strL = Arrays.asList(arrayStr);
        System.out.println("------" + strL.size());
    }//from ww  w .j  a v a  2s . c  o m
}

Related

  1. convertArrayToList(Object value)
  2. convertArrayToList(Object[] objects)
  3. convertArrayToList(Object[] source)
  4. convertArrayToList(String[] array)
  5. convertArrayToList(String[] array)
  6. convertArrayToList(T... objects)
  7. convertArrayToList(T[] array)
  8. convertArrayToList(T[] arrayOfObjects)
  9. copyToList(T... items)