List<Integer> list = Lists.newArrayList(1,2,3,4,5,6,7,8);
list.stream().skip(5).limit(100).forEach(System.out::println);
Stream.iterate(0, i -> i + 2).limit(5).forEach(System.out::println);
List<Integer> list = Lists.newArrayList(1,2,3,4,5,6,7,8);
list.stream().skip(5).limit(100).forEach(System.out::println);
Stream.iterate(0, i -> i + 2).limit(5).forEach(System.out::println);
本文标题:List 规则生成
本文链接:https://www.haomeiwen.com/subject/oqjdhftx.html
网友评论