Java List from Array convertArrayToList(String[] array)

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

Description

convert Array To List

License

Open Source License

Declaration

private static List<String> convertArrayToList(String[] array) 

Method Source Code

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

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class Main {
    private static List<String> convertArrayToList(String[] array) {
        List<String> list = new ArrayList<>(Arrays.asList(array));
        //        list.remove(0);
        return list;
    }/*from  w w w .ja v  a  2 s. c om*/
}

Related

  1. convertArrayToList(int[] ids)
  2. convertArrayToList(List list, String[] strs)
  3. convertArrayToList(Object value)
  4. convertArrayToList(Object[] objects)
  5. convertArrayToList(Object[] source)
  6. convertArrayToList(String[] array)
  7. convertArrayToList(String[] arrayStr)
  8. convertArrayToList(T... objects)
  9. convertArrayToList(T[] array)