public final class Arrays extends Object
Modifier and Type | Method and Description |
---|---|
static byte[] |
copyOfRange(byte[] data,
int from,
int to)
Make a copy of a range of bytes from the passed in data array.
|
public static byte[] copyOfRange(byte[] data, int from, int to)
data
- the array from which the data is to be copied.from
- the start index at which the copying should take place.to
- the final index of the range (exclusive).Copyright © 2019–2023. All rights reserved.