import java.util.concurrent.*; import java.util.*; /* This program takes an array of elements in the range of 0-99 (inclusive). It outputs how many occurrences were in 0-9, 10-19, 20-29, etc. */ public class Histogram extends RecursiveTask { static final ForkJoinPool fjPool=new ForkJoinPool(); int[] array; //the input data; NOT the output data - that gets returned each time int lo,hi; static final int SEQUENTIAL_CUTOFF=1000; public Histogram(int[] arr,int l,int h) { array=arr; lo=l; hi=h; } public int[] compute() { if(hi-lo<=SEQUENTIAL_CUTOFF) { int[] output=new int[10]; for(int i=lo;i