第二十三章测试
1.下面哪个不是流终端操作 ( )
A:reduce B:findFirst C:allMatch D:limit
答案:D
2.下面代码中,value数值是 ( )int[] numbers = { 100 ,90 ,80,70,60,50};int value= Arrays.stream(numbers).reduce(0, (a, b) -> a > b ? a : b);
A:10 B:450 C:50 D:100 3.下面代码中,value数值是 ( )int[] numbers = { 1,2,3,4,5,6,7,8,9,10};Integer value= Arrays.stream(numbers).reduce((x, y) -> x + y).get();
A:55 B:10 C:1 D:5 4.流编程中的流 和I/O中的流是不同的 ( )
A:错 B:对 5.流进行了终止操作后,还能做中间操作 ( )
A:对 B:错

温馨提示支付 ¥3.00 元后可查看付费内容,请先翻页预览!
点赞(1) dxwkbang
返回
顶部