+ 1
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0
why im getting this error ?
2 Answers
+ 5
It means You are trying to attempt elements of array beyond it's boundary or exceed length..
edit:
yes. Empty array accessing..
+ 4
It write exactly the issue. The array is empty (length=0) and you try acess the 1st element(index=0).