An arraycopy method in java copies an array from the specified source array, beginning or from the specified position, to the specified position of the destination array.
An arraycopy method in java copies an array from the specified source array, beginning or from the specified position, to the specified position of the destination array.An arraycopy method have the following parameters.
arraycopy(Object source, int srcPositon, Object
destination, int destPosition, int length). Here in this tutorial you will see a
simple example of the arraycopy method of java.
public class ArrayCopyExample {
|
result = C
result = D
result = E