Arrays.copyOfRange(myArray, startIndex, endIndex); This takes O(n)O(n)O(n) time and O(n)O(n)O(n) space, where nnn is the number of elements in the resulting array.