title: Java map an array of Strings to an array of Integers
body: <p>I found this code on SO to map strings to ints</p>
  
  <pre><code>Arrays.stream(myarray).mapToInt(Integer::parseInt).toArray();
  </code></pre>
  
  <p>But how do I make it map to Integer type not the primitive int?</p>
  
  <p>I tried switching from <code>Integer.parseInt</code> to <code>Integer.valueOf</code>, but it seems that the <code>mapToInt()</code> method forces the primitive type.</p>
  
  <p>I have an ArrayList of arrays of Integers, so I cannot use primitive ints.</p>