Java tutorial
//package com.java2s; import java.util.ArrayList; public class Main { /** * @author TheMrMilchmann * @since DerpieLang v1.0.0 */ @SafeVarargs public static final <T> ArrayList<T> asArrayList(T... objects) { ArrayList<T> list = new ArrayList<T>(); for (T object : objects) list.add(object); return list; } }