📜  创建并填充列表一行 java 代码示例

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

代码示例1
List list = Arrays.asList("foo", "bar");

or in Java 9
  
List list = List.of("foo", "bar", "baz");