I'm trying to check to remove from a List given that the list contains certain String element in it. Here is what I have:
List<String> list //this list contains 3 String elements, "a", "b", and "c"
if (list.contains("a") && list.contains("b"))
{
list.remove("a");
}
But when it runs to the if statement I got a source not found error from Eclipse debugger. Does anyone have a better idea as to why this is happening? The list is using java.util.List