title: Collect Objects in Array
body: <p>I want to filter the <code>CC</code> addresses of the array and want to collect it to the same array, </p>
  
  <p><strong><em>FOR EXAMPLE</em></strong></p>
  
  <pre><code>String[] ccAddress = emails.split(";");
  ccAddress = Arrays.stream(ccAddress)
                    .filter(adr -&gt; "".equals(adr) == false)
                    .collect(Collectors.toArray);// ?????
  </code></pre>
  
  <p>My question is, 'Is there any direct way to collect filtered elements to the array in Java8' ?</p>
  
  <p><em>NOTE : I know I can simply collect them to List and write <code>list.toArray()</code> to get array but that is not my question.</em> </p>