Can't seem to figure out why my secondArray's full of 0's
package com.codegym.task.task07.task0705;
import java.io.BufferedReader;
import java.io.InputStreamReader;
/*
One large array and two small ones
*/
public class Solution {
public static void main(String[] args) throws Exception {
int[] twentyNum = new int[20];
int[] firstArray = new int[10];
System.arraycopy(twentyNum, 0, firstArray,0, 10);
int[] secondArray = new int[firstArray.length];
System.arraycopy(twentyNum, 9, secondArray,0, 10);
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
for (int i = 0; i < twentyNum.length; i++) {
int n = Integer.parseInt(reader.readLine());
n = twentyNum[i];
}
for (int i = 0; i < secondArray.length; i++)
{
System.out.println(secondArray[i]);
}
}
}