@@ -0,0 +1,813 @@
+package com.nick.love.myra;%0A%0Aimport java.util.List;%0Aimport java.util.Random;%0Aimport java.util.stream.Collectors;%0Aimport java.util.stream.Stream;%0A%0Apublic class TestParalleStream %7B%0A%0A%09public static void main(String%5B%5D args) %7B%0A%09%09Random random = new Random(100000);%0A%09%09List%3CInteger%3E list = Stream.generate(random::nextInt).limit(100000)%0A%09%09%09%09.collect(Collectors.toList());%0A%0A%09%09System.out.println(%22I love Myra Ma%EF%BC%81%22);%0A%09%09// %E6%99%AE%E9%80%9A%E7%9A%84 for %E5%BE%AA%E7%8E%AF%0A%09%09long startTime1 = System.nanoTime();%0A%09%09for (@SuppressWarnings(%22unused%22) Integer i : list) %7B%0A%09%09%09System.out.print(%22%22);%0A%09%09%7D%0A%09%09System.out.println(%22%E4%BC%A0%E7%BB%9F%E6%96%B9%E5%BC%8F%E8%80%97%E6%97%B6%EF%BC%9A%22 + (System.nanoTime() - startTime1));%0A%0A%09%09// %E4%BD%BF%E7%94%A8 Stream %E5%B9%B6%E5%8F%91%E5%A4%84%E7%90%86%0A%09%09long startTime2 = System.nanoTime();%0A%09%09list.parallelStream().forEach(n -%3E %7B System.out.print(%22%22); %7D);%0A%09%09System.out.println(%22%E5%B9%B6%E8%A1%8C%E6%96%B9%E5%BC%8F%E8%80%97%E6%97%B6%EF%BC%9A%22 + (System.nanoTime() - startTime2));%0A%09%7D%0A%0A%7D%0A

Create TestParalleStream.java