📜  java list of lists - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:25.938000             🧑  作者: Mango

代码示例2
ArrayList> listOLists = new ArrayList>();
ArrayList singleList = new ArrayList();
singleList.add("hello");
singleList.add("world");
listOLists.add(singleList);

ArrayList anotherList = new ArrayList();
anotherList.add("this is another list");
listOLists.add(anotherList);