title: Converting Array to List
body: <p>In order to convert an Integer array to a list of integer I have tried the following approaches:</p>
  
  <ol>
  <li><p>Initialize a list(Integer type), iterate over the array and insert into the                    list</p></li>
  <li><p>By using Java 8 Streams:</p>
  
  <pre><code>int[] ints = {1, 2, 3};
  List&lt;Integer&gt; list = new ArrayList&lt;Integer&gt;();
  Collections.addAll(list, Arrays.stream(ints).boxed().toArray(Integer[]::new));
  </code></pre></li>
  </ol>
  
  <p>Which is better in terms of performance?</p>