Here you can find the source of createList(E initialElement)
public static <E> List<E> createList(E initialElement)
//package com.java2s; //License from project: Open Source License import java.util.*; public class Main { public static <E> List<E> createList(E initialElement) { List<E> res = new ArrayList<>(); res.add(initialElement);/*w w w . j ava2 s.com*/ return res; } }