title: java removing items from a List<String> if the list contains a certain String
body: <p>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:</p>
  
  <pre><code>List&lt;String&gt; list //this list contains 3 String elements, "a", "b", and "c"
  
  
  if (list.contains("a") &amp;&amp; list.contains("b"))
      {
          list.remove("a");
      }
  </code></pre>
  
  <p>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</p>