Array Copy - Java Programme to Copy Array.



If we want to copy an array, we can use either System.arraycopy() or Arrays.copyOf().

Here in this programme, I have used the first method i.e. System.arraycopy().
let`s have a look at Programme.

Programme :

OutPut :
caffein

If you want the full Code of this programme let me know in the Comment box...
Thankyou...

Follow me on:

Comments