📅  最后修改于: 2022-03-11 14:52:13.739000             🧑  作者: Mango
String[] myArray = new String[] { "I", "like", "eating", "pizza" };
List myList = Arrays.asList(myArray);
myList.forEach(string -> System.out.println(string));
// -output-
// I
// like
// eating
// pizza
// -output-