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.
I tried with
List<Integer> secondList = new ArrayList<>(Arrays.asList(original array));
secondList = secondList.subList(start,finish);
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?