📜  创建新的空列表 java 代码示例

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

代码示例3
List myList = new ArrayList();
or with generics (Java 7 or later)

List myList = new ArrayList<>();
or with generics (Old java versions)

List myList = new ArrayList();