title: Compare Two ArrayLists, Remove items that are matched
body: <p>Hi I have two custom array lists, I want to remove the similar items from one array list that are matched with the second array lists.</p>
  
  <p>Here is my logic that I'm using.</p>
  
  <pre><code>List&lt;Daily_Stock_Pojo&gt; dailyStockArrayListOne = new ArrayList&lt;Daily_Stock_Pojo&gt;();
  List&lt;Daily_Stock_Pojo&gt; dailyStockArrayListTwo = new ArrayList&lt;Daily_Stock_Pojo&gt;();
  
  List&lt;Daily_Stock_Pojo&gt; added = new ArrayList&lt;Daily_Stock_Pojo&gt;(dailyStockArrayListOne);
  
  added.removeAll(dailyStockArrayListTwo);
  </code></pre>
  
  <p>Also below one is my custom class used as an Object for the array lists.</p>
  
  <pre><code>public class Daily_Stock_Pojo {
  
      private Date Calendar_Date;
      private int Store_Id;
      private int Item_Id;
      private int Stock_Volume;
      private String MRP;
      private String objectId;
  
      public Daily_Stock_Pojo(Date calendar_Date, int store_Id, int item_Id, int stock_Volume, String MRP, String objectId) {
          Calendar_Date = calendar_Date;
          Store_Id = store_Id;
          Item_Id = item_Id;
          Stock_Volume = stock_Volume;
          this.MRP = MRP;
          this.objectId = objectId;
      }
  
      public Date getCalendar_Date() {
          return Calendar_Date;
      }
  
      public void setCalendar_Date(Date calendar_Date) {
          Calendar_Date = calendar_Date;
      }
  
      public int getStore_Id() {
          return Store_Id;
      }
  
      public void setStore_Id(int store_Id) {
          Store_Id = store_Id;
      }
  
      public int getItem_Id() {
          return Item_Id;
      }
  
      public void setItem_Id(int item_Id) {
          Item_Id = item_Id;
      }
  
      public int getStock_Volume() {
          return Stock_Volume;
      }
  
      public void setStock_Volume(int stock_Volume) {
          Stock_Volume = stock_Volume;
      }
  
      public String getMRP() {
          return MRP;
      }
  
      public void setMRP(String MRP) {
          this.MRP = MRP;
      }
  
      public String getObjectId() {
          return objectId;
      }
  
      public void setObjectId(String objectId) {
          this.objectId = objectId;
      }
  }
  </code></pre>
  
  <p>Give me a solution on how to compare two custom array lists and remove all the items from the first array list that are matched with the second array list.</p>