Code:
import java.io.*;
class merge_array
{
public static void main(int a, int b)throws IOException
{
int c;
int A[] = new int[a];
int B[] = new int [b];
c = a+b;
int C[]= new int[c];
for(i=0; i<a; i++)
{
A[i] = Iteger.parseInt(in.readLine());
    }
    for(j=0;j<b; j++)
    {
        B[j]=Integer.parseInt(in.readLine());
    }
    for(i=0;i<a;i++)
    {
        c[i]=A[i];
    }
    for(j=0; j<b;j++)
    {
        c[i]=B[j];
        i++;
    }
}
    }