Why?
package com.codegym.task.task07.task0705;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Arrays;
/*
One large array and two small ones
*/
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
int arrlarge[] = new int[20];
int l = arrlarge.length;
for (int i = 0; i < arrlarge.length; i++) {
arrlarge[i] = Integer.parseInt(r.readLine());
}
int arrfirst[] = new int[10];
int arrsecond[] = new int[10];
for (int j = 0; j < arrlarge.length; j++) {
if (j< arrfirst.length)
arrfirst[j] = arrlarge[j];
else
arrsecond[j-arrfirst.length]=arrlarge[j];
}
System.out.print(Arrays.toString(arrfirst));
System.out.print(Arrays.toString(arrsecond));
}
}