Java8ã®lambdaæ§æãã©ã®ããã«ã¯ãã¼ã¸ã£ã¼ã§ã¯ãªãããèªãã§æã£ãã®ã¯ãã©ã ãã®å¤å´ã®å¤æ°ã«å¯¾ããå¦çãã¹ã¬ããã»ã¼ããªã®ãã©ããã¨ããç¹ã§ããã¨ããããã§æ©é試ãã¦ã¿ã¾ããã ã¹ã¬ããã»ã¼ãã§ãªã ArrayList ã¯ã©ã¹ã«å¯¾ãã¦ä¸¦åã§å¤ã追å ããã¨ããã³ã¼ãã§ãã public void test() { Integer[] array = new Integer[100000]; Arrays.fill(array,0); List<Integer> nums = Arrays.asList(array); Stream<Integer> stream = nums.stream(); List<Integer> list = new ArrayList<Integer>(); stream.parallel().forEach(s -> list.add(s)); Sy
{{#tags}}- {{label}}
{{/tags}}