The use of the ArrayCopy method in the ArrayCopy System class.
grammar:
System.ArrayCopy (from, fromindex, to, toindex, count);
Public class java {
Public static void main (string [] args) {int [] small = {2, 3, 5, 7, 11, 13}; int [] BIG = {1001, 1002, 1003, 1004, 1005, 1006, 1007} System.ArrayCopy (Small, 2, BIG, 3, 4); for (int A = 0; a operation result: 0 Entry After Copy 1002 2 Entry After Copy 1003 3 Entry After Copy 5 4 Entry After Copy 7 5 Entry After COPY 11 6 Entry After COPY 13 to sum up: Just started to contact Java, not very well understood for syntax. It is easy to forget it, so write down, it is convenient for reference. System.ArrayCopy (from, fromindex, to, toindex, count); From: is the source array. FromIndex: It is the starting index of array members to copy, this is 5. And count can determine the number of array members to be copied. In this example, 5, 7, 11, 13. TO: is an array of targets. TOINDEX: It is an array member replicates to the starting position of Index of the target array.