As u can see i wanna delete or remove the ingrediant which equals my ingredientid from my SplitedIgrediants list, i've tried with remove or delete but it's appear an error. So how can i do to delete this ingredient elemant please from my list in JAVA.
String ingredientid = request.getParameter("id");
DbHandler dbsplt = new DbHandler();
for (String ingrediant : SplitedIngrediants) {
if (ingrediant.equals(ingredientid)) {
//HERE REMOVE THE ingredient from SplitedIngrediants list
}
SplitedIngrediants. Best we see the other parts of the code