Explore
Connect
Documentation
Snippets
Log in
Sign up
1
2
3
4
5
6
7
8
9
import
java.util.stream.IntStream;
public
class
Main {
public
static
void
main(
String
args[])
throws
Exception
{
System.out.println(
"Parallel Sum: "
+
IntStream.range(
0
,
10000
).parallel().sum());
}
}
Enter to Rename, Shift+Enter to Preview
Run