title: Remove items from object arraylist using String array - android
body: <p>I have a custom ArrayList and String array. What I want is to remove a row in ArrayList which is match with the value of the String array.</p>
  
  <p>My ArrayList.....</p>
  
  <pre><code>ArrayList&lt;SqlFavHeaderData&gt; hList = db.getAllHeaderDetails();
  </code></pre>
  
  <p><strong>SqlFavHeaderData</strong></p>
  
  <pre><code>private String mId;
  private String mType;
  private double mPrice;
  private String mBeds;
  </code></pre>
  
  <p>String Array....</p>
  
  <pre><code>String[] ss = new String[i];
  </code></pre>
  
  <p>This has values that match with <strong>mId</strong> in the ArrayList.</p>
  
  <p>What I want is to remove items from ArrayList comparing with <strong>mId</strong>, that matched the values in the String Array.</p>
  
  <p>I tried like this.But no luck...</p>
  
  <pre><code>   for (int i = 0; i &lt; 10; i++) {
          hList.remove(ss[i]); 
      }
  </code></pre>