copy Of Range
Returns a new array which is a copy of the specified range of the original array.
Parameters
fromIndex
the start of the range (inclusive) to copy.
toIndex
the end of the range (exclusive) to copy.
Throws
if fromIndex is less than zero or toIndex is greater than the size of this array.
if fromIndex is greater than toIndex.