Having trouble trying to implement bucket sort algorithm

Hello,

Processing 4 on W10 PC highlighted where the error is in blue.

I added a println() to illustrate the problem:

184 is clearly out of bounds of the 8 element array.

:)