M
M
Maxim Rybalkin2019-04-19 14:44:29
Java
Maxim Rybalkin, 2019-04-19 14:44:29

Can you please explain how the System.arraycopy() method works?

Hello dear! There is a task - the ordered record of elements in an array through System.arraycopy (); to further search for elements via binarySearch().
As far as I understand now - this method is designed to copy arrays in a given range; how, then, is the ordered recording / sorting going on here?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2019-04-19
@MaxRybalkin

None. If you copy an unordered array, you get another unordered array.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question