Java 8 为Iterable 接口新增了一个forEach(Consumer action) 默认方法,该方法所需参数的类型是一个函数式接口,而Iterable 接口是Collection 接口的父接口, ...
確定! 回上一頁