java – How to handle array:Exception in thread “main” java.lang.ArrayIndexOutOfBoundsException: 3

 for(int i=0;i<length;i++)     

should be

 for(int i=0;i<length - 1;i++)

since you can have length - 1 number of comparisons.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)