How to get a sub array of array in Java, without copying data? April 27, 2023 by Tarik Arrays.asList(array).subList(x, y). This method doesn’t give you an array, but a List, which is far more flexible.