当然,这里的优点是您可以过滤并跳过仅列出部分列表的副本。 例如 //don't copy the first element List<String> list2 = list1.stream().skip(1).collect ...
確定! 回上一頁