I created an arraylist of Student type. Student has name, subject information in it. Suppose my ArrayList has values like (sam, maths), (john, english), (mat, science). If i want to find out which student has science stream, then how to search it in an ArrayList.
I think it may be done by using binarysearch or indexof methods, but not getting it right.
Thats how I did in the end. Sorry I forgot to answer this one.