在jdk8中的java.lang.Iterable接口中新增了default的forEach方法。可以使用该方法配合lambda来遍历集合。 package com.monkey1024.jdk8; import java.util.ArrayList; ...
確定! 回上一頁