title: How do I remove objects from an array in Java?
body: <p>Given an array of <strong>n</strong> Objects, let's say it is an <strong>array of strings</strong>, and it has the following values:</p>
  
  <pre><code>foo[0] = "a";
  foo[1] = "cc";
  foo[2] = "a";
  foo[3] = "dd";
  </code></pre>
  
  <p>What do I have to do to delete/remove all the strings/objects equal to <strong>"a"</strong> in the array?</p>