Why index out of bounds?
I need to do the nested for loop on my code below, but whatever I do to that loop, like doing the usual array.length - 1, it says that the index is out of bounds. I can usually fix the problem, but on this case, I need help. I never tried that code on IntelliJ IDEA on my old PC. How can I rectify this problem? https://code.sololearn.com/cb4q1tVVapae/?ref=app