Array length is never 0 so an ArrayOutOfBoundsException occurs on the next line
126
How do I compare strings in Java?
82652
String.length() vs Array.length
42098
Getting the array length of a 2D array in Java
153484
Exceptions to array decaying into a pointer?
142239
Java "ConcurrentModificationException" runtime error when iterating .next()
146374
Converting array to list in Java
131573
Java array with more than 4gb elements
94107
What is the purpose of LongLength for .Net Arrays?
85599
How do I declare an array when I don't know the length until run time?
15732
Java: return 2D Array with very varying entry lengths as formatted string
26032
How do I declare and initialize an array in Java?
13597
Array of zero length
129333
What does IndexOutofRangeException mean?
116915
Arrays constants can only be used in initializers error
11511
Error: Assigning to an array from an initializer list
12736
How to handle infinite loop caused by invalid input (InputMismatchException) using Scanner
16864
Where is Java's Array indexOf?