for(String s: list){ //do something with s }. 复制代码. 如果我们想使用函数式Java,我们也可以使用forEach()。我们可以直接在集合上这样做:.
確定! 回上一頁