code: public static <E> List<E> newArrayList(E... values) {
      List<E> list = new ArrayList<E>(values.length);
      for (E e : values) {
        list.add(e);
      }
      return list;
    }
docs: <p>
  newArrayList.
  </p>
  
  @param values a E object.
  @param <E> a E object.
  @return a {@link java.util.List} object.