I am writing simple program which will eventually plot the run times of various sorting algorithms written in Java. The general interface of a sorting algorithm is via a met
You should box the IntStream to a Stream, then call toArray to make a array of it:
IntStream
Stream
Integer[] arr = testCase(1,2,3).boxed().toArray(Integer[]::new);