📜  将字符串数组添加到字符串列表 java 代码示例

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

代码示例1
import java.util.Collections;

List myList = new ArrayList();
String[] myArray = new String[] {"Java", "Util", "List"};

Collections.addAll(myList, myArray);