Не пойму почему не проходит.
package com.javarush.task.task07.task0705;
import java.io.BufferedReader;
import java.io.InputStreamReader;
/*
Один большой массив и два маленьких
*/
public class Solution {
public static void main(String[] args) throws Exception {
//напишите тут ваш код
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int[] num = new int[20];
int[] num_1 = new int[10];
int[] num_2 = new int[10];
int check = 0;
while (check < num.length){
num[check] = Integer.parseInt(reader.readLine());
check++;
}
check = 0;
System.out.println("Массив собран. "+check+" "+num.length);
while(check < num.length){
if(check < 10){
num_1[check] = num[check];
check++;
}
else if(check >= 10){
num_2[check-10] = num[check];
System.out.println(num_2[check-10]);
check++;
}
}
}
}