Java List from Array convertArrayToList(Object[] objects)

Here you can find the source of convertArrayToList(Object[] objects)

Description

convert Array To List

License

Apache License

Declaration

public static List convertArrayToList(Object[] objects) 

Method Source Code

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

import java.util.ArrayList;

import java.util.List;

public class Main {

    public static List convertArrayToList(Object[] objects) {
        List rtnList = new ArrayList();
        for (int i = 0; i < objects.length; i++) {
            rtnList.add(objects[i]);//from w w w .j  a  va2  s  .  c  o  m
        }
        return rtnList;
    }
}

Related

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