用lambda求數組的和

其中用了IntStream.of(…).sum()這一方法求和web public class test { public static void main(String[] args) { // TODO 自動生成的方法存根 test tl=new test(); int[] arr=new int[]{1,2,3,4,5,6};
相關文章
相關標籤/搜索