public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int[] a = new int[20];
int[] b = new int[10];
int[] c = new int[10];
for(int i=0;i<20;i++){
a[i] = Integer.parseInt(reader.readLine());
}
for(int i=0;i<10;i++){
b[i] = a[i];
System.out.print(b[i]);
}
System.out.println();
for(int i=10;i<20;i++){
c[i-10] = a[i];
System.out.print(c[i-10]);
}
System.out.println();
for(int i=0;i<20;i++){
System.out.print(a[i]);
}
}
}
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
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int[] a = new int[20];
int[] b = new int[10];
int[] c = new int[10];
for(int i=0;i<20;i++){
a[i] = Integer.parseInt(reader.readLine());
}
for(int i=0;i<10;i++){
b[i] = a[i];
System.out.print(b[i]);
}
System.out.println();
for(int i=10;i<20;i++){
c[i-10] = a[i];
System.out.print(c[i-10]);
}
System.out.println();
for(int i=0;i<20;i++){
System.out.print(a[i]);
}
// // System.out.println("\t");
// for(int j=0;j<10;j++){
// System.out.println(c[j]);
// }
// for(int i=0;i<20;i++){
// System.out.println(a[i]);
// }
}
}