I have no Idea what I am doing wrong here. I think its line 32: I've tried a few different ways to no avail. Today is not my day with CodeGym :-(
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 {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int[] longArray = new int[20];
int[] shortArray1 = new int[10];
int[] shortArray2 = new int[10];
for (int i = 0; i < longArray.length; i++){
longArray[i] = Integer.parseInt(reader.readLine());
//System.out.println(longArray[i]);
}
//for (int j = 0; j < longArray.length/2; j++){
//shortArray1[j] = longArray[j];
//System.out.println(shortArray1[j]);
//}
for (int k = longArray.length/2; k < longArray.length; k++){
shortArray2[k] = longArray[k];
System.out.println(shortArray2);
}
}
}