|
@@ -4,7 +4,7 @@ public class TestForkjoin {
|
|
|
public static void main(String[] args) throws Exception {
|
|
|
MyRecursiveTask fj = new MyRecursiveTask(1, 100000);
|
|
|
ForkJoinPool pool = new ForkJoinPool();
|
|
|
- Future future = pool.submit(fj);
|
|
|
+ Future<Integer> future = pool.submit(fj);
|
|
|
System.out.println(future.get());
|
|
|
}
|
|
|
}
|