Arrays in Java — from Python lists to fixed size, indexes and references
I still remember the first time one of my Java programs stopped dead with a red message saying ArrayIndexOutOfBoundsException. It was a loop going through an array of grades, and I was convinced the code was perfect: I had written i <= grades.length. I came from Python, where a mistake like that would have given…
