title: How to convert short[] into List<Short> in Java with streams?
body: <p>I figured I could extrapolate from <a href="https://stackoverflow.com/q/1073919/3014199">this question</a> but I can't</p>
  
  <p>I can of course do</p>
  
  <pre><code>short[] shortarray = {0,1,2};
  List&lt;Short&gt; shortList = new ArrayList&lt;Short&gt;();
  for (Short s : shortarray) {
      shortList.add(s);
  }
  </code></pre>
  
  <p>But I'm wondering how to do it with streams.</p>
  
  <pre><code>List&lt;Short&gt; shortList = Arrays.stream(shortarray).boxed()
                                .collect(Collectors.toList());
  </code></pre>
  
  <p>doesn't work for example but yields <code>The method stream(T[]) in the type Arrays is not applicable for the arguments (short[])</code></p>