I can't tell what is going wrong, output is correct and I see no problem with what I have done here. No errors when I run it, so I'm just confused at this point.
package com.codegym.task.task07.task0705;
import java.io.BufferedReader;
import java.io.InputStreamReader;
/*
One large array and two small ones
*/
public class Solution {
static BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
static int[] large = new int[20];
static int[] small1 = new int[10];
static int[] small2 = new int[10];
public static void main(String[] args) throws Exception {
for (int count = 0; count < 20; count++) {
large[count] = Integer.parseInt(reader.readLine());
}
for (int count = 0; count < 10; count++) {
small1[count] = large[count];
small2[count] = large[count + 10];
}
for (int count = 0; count < 10; count++) {
System.out.println(small2[count]);
}
}
}