ArrayList of Object | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

ArrayList of Object

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

20th Apr 2017, 4:23 AM
Anibal Lopes
2 Answers
+ 1
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++
22nd Apr 2017, 10:32 AM
Lena
Lena - avatar
+ 1
I want to access the specific value without search the entire arraylist.
24th Apr 2017, 2:17 AM
Anibal Lopes