Java Reference
In-Depth Information
312
Figure 9
The System.arraycopy Method
Occasionally, you need to copy elements from one array into another array. You can
use the static System.arraycopy method for that purpose (see Figure 9 ):
Use the System.arraycopy method to copy elements from one array to
another.
System.arraycopy(from, fromStart, to, toStart,
count);
Search WWH ::




Custom Search