title: Making a copy of an array with Arrays.asList
body: <p>so I have an int array, and want to have another array that points to the same values as the original array so that when original array changes the second array would point to to the new value.</p>
  
  <p>I tried with </p>
  
  <pre><code>List&lt;Integer&gt; secondList = new ArrayList&lt;&gt;(Arrays.asList(original array));
  secondList = secondList.subList(start,finish);
  </code></pre>
  
  <p>But I get an error that says that .asList returns - list of type int[]
  Am I doing something wrong? Or is there any good way to do this?</p>