Java tutorial
//package com.java2s; import java.util.ArrayList; import java.util.Collection; public class Main { @Deprecated // use com.google.common.collect.Lists.newArrayList public static <T> ArrayList<T> newArrayList() { return new ArrayList<T>(); } @Deprecated // use com.google.common.collect.Lists.newArrayList public static <T> ArrayList<T> newArrayList(Collection<T> xs) { ArrayList<T> r = newArrayList(); r.addAll(xs); return r; } }