Java 中List.forEach()方法使用 · 一、创建集合. List<String> list = new ArrayList<>(); list.add("a"); · 二、正常遍历 list.forEach(item->System.out.
確定! 回上一頁