如何转换ArrayList<;LinkedList>;列出<;列表>;?

如何转换ArrayList<;LinkedList>;列出<;列表>;?,list,arraylist,linked-list,List,Arraylist,Linked List,有人知道如何将数组列表转换为列表吗 我正在寻找一个简单的方式转换 public List<List<Integer>> convert(ArrayList<LinkedList<Integer>> al){ ===How to complete this function?=== } 公共列表转换(ArrayList al){ ==如何完成此功能=== }

有人知道如何将
数组列表转换为
列表吗

我正在寻找一个简单的方式转换

public List<List<Integer>> convert(ArrayList<LinkedList<Integer>> al){
===How to complete this function?===
}
公共列表转换(ArrayList al){
==如何完成此功能===
}