Out of Bounds?! What is out of bounds?
lol
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 {
//write your code here
int[] nums = new int[20];
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
for(int i = 0; i < 20; i++)
{
nums[i] = Integer.parseInt(reader.readLine());
}
int[] num1 = new int[10];
int[] num2 = new int[10];
for(int j = 0; j < 10; j++)
{
num1[j] = nums[j];
}
for(int u = 10; u < 20; u++)
{
num2[u] = nums[u];
}
for(int k = 0; k < num2.length; k++)
{
System.out.println(num2[k]);
}
}
}