Delete comment from: Javarevisited
In most cases I personally thing advanced for-loop is better if you don't know about length-1. Makes code clear and easy for read but skips understanding of arrays. Personally my opinion is people forget arrays are zero-indexed.
Jun 16, 2014, 5:20:59 AM
Posted to How to Fix Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: in Java? Solution