ArrayList of Object | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 1

ArrayList of Object

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

20th Apr 2017, 4:23 AM
Anibal Lopes
2 ответов
+ 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 - avatar
+ 1
I want to access the specific value without search the entire arraylist.
24th Apr 2017, 2:17 AM
Anibal Lopes