I have an arraylist of custom object.
CustomObject:
public class CustomObject
{
private String name ;
private int isCorrcet ;
private int icon;
private int disableIcon;
}
For ArrayList having boolean Object we can check whether any boolean object exists having value true.
arrayList.contains(true);
how we can do this for custom object.check whether custom object exists whose data Member isCorrect having value 1
.