Tom Reilly wrote:Why do you keep looking for it after you've found it? Is it going to be there more than once?
yes.. let me clear my scenario first,, the list has get values from xml file while its loading,, after that i'm gonna to build my MyModel class which will have half of its member has values half of them or not.. now I'm using the removeFromList() method for validation.. Because of, the model in xml have all its member values, this method remove nothing now..more than that I've add it to myList. Now my list contains 2 elements,, model1 from xml file, model 2 from operation occurs now,, after that i'll add remaining member values into current builded model, that is updated in current model which is in the list (index position 1)... So, now myList has 2 same elements( assumes each model value has same member values)... Now I'm once again call my removeFromList() method.. From this method I'm expecting remove both elements from list.. list's clear() method will not help me here because of future consideration...