Here you can find the source of cloneList(List
public static <T> List<T> cloneList(List<T> l)
//package com.java2s; //License from project: Apache License import java.util.ArrayList; import java.util.List; public class Main { public static <T> List<T> cloneList(List<T> l) { return new ArrayList<>(l); }//from w w w .j a v a2 s. c om }