How To Get The Index Of An Array In Java