Point out
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[] Big = new int[20];
int[] smallerOne = new int[10];
int[] smallerTwo = new int[10];
for (int i = 0; i < Big.length; ++i)
{
Big[i] = Integer.parseInt(reader.readLine());
}
for (int i = 0; i < Big.length / 2; ++i)
{
System.out.println(smallerOne[i] = Big[i]);
}
for (int i = 0; i < Big.length / 2; ++i)
{
System.out.println(smallerTwo[i] = Big[i + 10]);
}
int[] total = new int[Big.length];
for (int j = 0; j < total.length / 2; ++j)
{
total[j] = smallerOne[j];
// System.out.println(total[j]);
}
for (int j = 0; j < total.length / 2; ++j)
{
total[j + 1] = smallerTwo[j];
// System.out.println(total[j + 1]);
}
for (int k = 0; k < total.length; ++k)
{
System.out.println(total[k]);
}
}
}