Java Array to List arrayToList(String[] str)

Here you can find the source of arrayToList(String[] str)

Description

array To List

License

Apache License

Declaration

@SuppressWarnings("unchecked")
    public static List arrayToList(String[] str) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.*;

public class Main {
    @SuppressWarnings("unchecked")
    public static List arrayToList(String[] str) {
        List list = Arrays.asList(str);
        return list;
    }/*from   ww  w  .j a v a  2 s.c  om*/
}

Related

  1. arrayToList(final T... items)
  2. arrayToList(int[] intArr, int cnt)
  3. arrayToList(Object[] objs)
  4. arrayToList(String... stringArray)
  5. arrayToList(String[] array, String delim)
  6. arrayToList(T[] array)
  7. arrayToList(T[] t)
  8. fromArray(E[] array)
  9. fromArray(final Object[][] array)