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.
My ArrayList.....
ArrayList<SqlFavHeaderData> hList = db.getAllHeaderDetails();
SqlFavHeaderData
private String mId;
private String mType;
private double mPrice;
private String mBeds;
String Array....
String[] ss = new String[i];
This has values that match with mId in the ArrayList.
What I want is to remove items from ArrayList comparing with mId, that matched the values in the String Array.
I tried like this.But no luck...
for (int i = 0; i < 10; i++) {
hList.remove(ss[i]);
}