I have a ArrayList with custom objects. I want to search inside this ArrayList for Strings.
The class for the objects look like this:
public class Da
Use Apache CollectionUtils:
Apache CollectionUtils
CollectionUtils.find(myList, new Predicate() { public boolean evaluate(Object o) { return name.equals(((MyClass) o).getName()); } }