What is wrong?! I have been stuck on this for days.
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[] bigarray = new int[20];
int[] smallarray1 = new int [10];
int[] smallarray2 = new int [10];
BufferedReader inp = new BufferedReader (new InputStreamReader(System.in));
for (int i = 0; i < bigarray.length; i++)
{
int T= Integer.parseInt(inp.readLine());// for taking a number as an input
bigarray[i] = T;
System.out.println(bigarray[i]);
// if (i < 10){
// smallarray1[i] = T;
// }
// System.out.println(smallarray1[i]);
// else if (i < 20 && i > 9){
// smallarray2[i] = T;
// }
//System.out.println(smallarray2[i]);
}
for (int i = 0; i < 10; i++)
{
smallarray1[i] = bigarray[i];
System.out.println(smallarray1[i]);
}
for (int j = 10; j < 20; j++)
{
smallarray2[j] = bigarray[j];
System.out.println(smallarray2[j]);
}
}
}