title: Replace certain string in array of strings
body: <p>let's say I have this string array in java</p>
  <pre class="lang-java prettyprint-override"><code>String[] test = {&quot;hahaha lol&quot;, &quot;jeng jeng jeng&quot;, &quot;stack overflow&quot;};
  </code></pre>
  <p>but now I want to replace all the whitespaces in the strings inside the array above to <code>%20</code>, to make it like this</p>
  <pre class="lang-java prettyprint-override"><code>String[] test = {&quot;hahaha%20lol&quot;, &quot;jeng%20jeng%20jeng&quot;, &quot;stack%20overflow&quot;};
  </code></pre>
  <p>How do I do it?</p>