Java tutorial
//package com.java2s; //License from project: Open Source License import java.util.Arrays; import java.util.LinkedList; import java.util.List; public class Main { public static List createList(Object item) { List list = new LinkedList(); list.add(item); return list; } public static List createList(Object[] items) { List list = new LinkedList(Arrays.asList(items)); return list; } }