Can you explain me how to fill arraycopy function?
package com.codegym.task.task07.task0705;
import java.awt.*;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.SyncFailedException;
/*
One large array and two small ones
*/
public class Solution {
public static void main(String[] args) throws Exception {
int[] num = new int[20];
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
for(int i =0; i<num.length;i++){
int a = Integer.parseInt(reader.readLine());
num[i]=a;
}
int[] x = new int[10];
int[] y = new int[10];
System.arraycopy(num, 0, x, 0, 10);
System.arraycopy(num, 10, y, 0, 10);
//write your code here
}
}