title: ArrayList with custom object how we can check whether an object in the list contain 1 value of data member isCorrect
body: <p>I have an arraylist of custom object.</p>
  
  <p>CustomObject:</p>
  
  <pre><code>public class CustomObject 
   {
  private String name ;
  private int isCorrcet ;
  private int icon;
  private int disableIcon;
  }
  </code></pre>
  
  <p>For ArrayList having boolean Object we can check whether any boolean object exists having value true.</p>
  
  <pre><code>arrayList.contains(true);
  </code></pre>
  
  <p>how we can do this for custom object.check whether custom object exists whose data Member isCorrect having value <code>1</code>. </p>