I have an ArrayList and I’ve added elements to the ArrayList using mylist.add() method.
I’ve added around 10 elements and now I want to figure out whether an element is available in the ArrayList, if so what is the index position. How can I acheive this?? the contains method doesn’t help.
I searched online but couldn’t figure out a tutorial, may be i’m missing the correct keywords in the search
Thanks for your time in advance.
1 Answer