For this Question: Insertion is a basic but frequently used operation. Arrays in most languages cannot be dynamically shrinked or expanded. Here, we will work with such arrays and try to insert an element at some index.

You are given an array arr. The size of the array is given by sizeOfArray. You need to insert an element at given index and print the modified array.The first line of input contains T denoting the number of testcases. T testcases follow. 
Each testcase contains two lines of input. 
The first line contains size of the array denoted by sizeOfArray,  element to  be inserted and index. 
The third line contains sizeOfArray-1 elements separated by spaces.

Constraints:
1 <= T <= 100
2 <= sizeOfArray <= 10^4
0 <= element, arr(i) <= 10^6
0 <= index <= sizeOfArray-1For each testcase, in a new line, print the modified array.Input:
2
6 90 5
1 2 3 4 5
6 90 2
1 2 3 4 5

Output:
1 2 3 4 5 90
1 2 90 3 4 5

Explanation:
Testcase 1: 90 in inserted at index 5(0-based indexing). After inserting, array elements are like 1, 2, 3, 4, 5, 90.
Testcase 2: 90 in inserted at index 2(0-based indexing). After inserting, array elements are like 1, 2, 90, 3, 4, 5., I have written this Solution Code: import java.util.*;
import java.io.*;
import java.lang.*;

class Main
{
    public static void main (String[] args)throws Exception {
        
        BufferedReader read = new BufferedReader(new InputStreamReader(System.in));
        int t = Integer.parseInt(read.readLine());
        
        while(t-- > 0)
        {
            String str[] = read.readLine().trim().split(" ");
            int N = Integer.parseInt(str[0]);
            int ele = Integer.parseInt(str[1]);
            int index = Integer.parseInt(str[2]);
            
            str = read.readLine().trim().split(" ");
            int arr[] = new int[N];
            for(int i = 0; i < N-1; i++)
              arr[i] = Integer.parseInt(str[i]);
              
            insertAtIndex(arr, N, index, ele);
            
            for(int i = 0; i < N; i++)
              System.out.print(arr[i] + " ");
              
            System.out.println();
            
        }
    }
    
    public static void insertAtIndex(int arr[],int sizeOfArray,int index,int element)
    {
        // if index is last index
        // then insert the element
        if(index==sizeOfArray-1)
        {
            arr[index]=element;
            return;
        }
        
        // else shift the elements, and then insert
        for(int i=sizeOfArray-1;i>index;i--)
        {
            int temp=arr[i];
            arr[i]=arr[i-1];
            arr[i-1]=temp;
        }
        arr[index]=element;
    }
}, In this Programming Language: Java, Now tell me if this Code is compilable or not?