code: public static <T> List<T> toList(final T[] array) {
  
      if (array != null) {
        List<T> list = new ArrayList<T>(array.length);
        for (T element : array) {
          list.add(element);
        }
        return list;
      } else {
        return new ArrayList<T>(0);
      }
    }
docs: 将给定数组转换成List。Convert given array to a list.
  
  @param array 源数组。source array.
  @return 一个新的数组并包含按给定数组顺序的所有元素。a list has full given array element and order
  by array index.