Ran my code on intellij with different numbers, and even with the smallest number buried somewhere in the middle of the array. But, I am still getting an error from this. Why is that? I am using the Math.min correctly, and I have found the smallest number. Thanks in advance