我想克隆列表:
public List<List<Test>> a = new ArrayList<List<Test>>();
public List<List<Test>> b = new ArrayList<List<Test>>();
但如果我这样做:
b = (ArrayList<List<Test>>)a.clone();
发生错误:
The method clone() is undefined for the type List<List<Test>>
你能帮助我吗?