title: What does "String[]::new" mean?
body: <p>I'm learning how to use stream, and I get a problem with this method.</p>
  
  <pre><code>public static String[] inArray(String[] array1, String[] array2) {
     return Arrays.stream(array1)
    .filter(str -&gt; Arrays.stream(array2).anyMatch(s -&gt; s.contains(str)))
    .distinct().sorted().toArray(**String[]::new**);
  }
  </code></pre>
  
  <p>I'm so confused about <code>String[]::new</code>, could you give me a hint?</p>