title: Removing white space from an array containing String in Java
body: <p>So how can I remove a space(s) from an array of a string...</p>
  <p>Taking an example, I have a string called <code>list</code>:</p>
  <p>String[] list ={&quot;Apple &quot;,  &quot;Mel on&quot;, &quot;  Ice -cream &quot;, Television&quot;};</p>
  <p>Can anyone please guide on what methods I should be using?
  I've already tried using <code>.replace()</code>.</p>