package concurrency.forkjoinpool;

import java.util.concurrent.*;
import java.util.stream.*;

/**
 *
 *
 *
 */

public class PrintConstants {
    public static void main(String[] args) {
        ExecutorService service = Executors.newScheduledThreadPool(10);
        DoubleStream.of(3.14159,2.71828) // b1
                .forEach(c -> service.submit( // b2
                        () -> System.out.println(10*c))); // b3
        service.execute(() -> System.out.println("Printed")); // b4
    }
}

@@ -60,48 +60,185 @@
 ent.
-*;%0Aimport java.util.stream.*;%0A%0A/**%0A *%0A *
+ExecutorService;%0Aimport java.util.concurrent.Executors;%0Aimport java.util.stream.DoubleStream;%0A%0A/**%0A * Order of the output can't be determined as all are printed separate threads
 %0A *%0A

Order can't be determined