Using Arrays.copyOfRange.

Don't do it yourself.