ArrayList of Object | Sololearn: Learn to code for FREE!


ArrayList of Object

how to use indexof() in ArrayList of object with 3 attributes

4/20/2017 4:23:44 AM

Anibal Lopes

2 Answers

New Answer


If you're searching for a specific character you could use a while loop, and use the counter for its position? Eg: While (num > arraysize && !found)  If array[num]==searchItem    Found=true Else   Num++


I want to access the specific value without search the entire arraylist.