I often would rather stare at the code until I see the issue, but this one it taking me too long. It is complaining that: The Solution class must have two methods. ( Main and getMinimumAndIndex) - Still an issue - It is complaining: The getMinimumAndIndex() method must return the minimum of the array and its position (index). Updated: I figured this one out while writing the question: IntStream.range(1 vs 0... that corrected it) I get the right answer: ( I think ) The minimum is -8 The index of the minimum element is 5