My code works to the best of my understanding but I don't meet the last criteria? Any assistance would be much appreciated.
package com.codegym.task.task07.task0705;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
/*
One large array and two small ones
*/
public class Solution {
public static void main(String[] args) throws Exception {
int[] n = initializeArray();
int[] small = new int[10];
int[] large = new int[10];
System.arraycopy(n, 0, small, 0, 10);
System.arraycopy(n, 10, large, 0, 10);
for (int i = 0; i < 10; i++)
{
System.out.println(small[i]);
}
}
private static int[] initializeArray() throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int[] list = new int[20];
for (int i = 0; i < list.length; i++)
{
String s = reader.readLine();
list[i] = Integer.parseInt(s);
}
return list;
}
}