Java Lambda表达式 Java Boxing and Unboxing Java循环通过数组 Java Lambda表达式 import java.util.ArrayList; import java.util.List; import java.util.stream.Collectors; public class LamdaExpressions { public static void main(String args[]) { ArrayList <String> list = new ArrayList<String>(); list.add("123"); list.add("223"); list.add("323"); list.add("334"); List<Integer> listInteger = list.stream().map(s -> Integer.parseInt(s)).collect(Collectors.toList()); System.out.println(listInteger); } } Java Boxing and Unboxing Java循环通过数组