title: Modifying Java Collection (List) Variable in Eclipse Debugger
body: <p>In Eclipse's Debugger I can change the value of a plain variable, but now I need to modify a List by removing or adding elements. Also, it can't be an empty list, it must contain specific items.</p>
  <p>I right-click on the variable and try 'Change Value', but the following don't work:</p>
  <pre><code>new ArrayList&lt;String&gt;(Arrays.asList(&quot;333&quot;));
  
  ==&gt; ERROR: &quot;Arrays cannot be resolved&quot;
  </code></pre>
  <p>and</p>
  <pre><code>list.remove(&quot;12345&quot;);
  list.remove(&quot;67890&quot;);
  
  ==&gt; ERROR: Generated value (Boolean) is not compatible with declared type (java.util.List)
  </code></pre>
  <p>Any other ideas?</p>
  <p><a href="https://i.stack.imgur.com/Cp2yY.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Cp2yY.jpg" alt="enter image description here" /></a></p>