indexOf : if you want to get the index of an object existing in Java ArrayList, you can use this method Predefined :

ArrayList<String> list = new ArrayList<>();
int index = list.indexOf(Object);  // return int 

Laisser un commentaire