Arrange the elements of 2 arrays and store in a third array without using sorting techniques

Write a program in java to take 2 arrays(say ar[] and ar1[]) having numbers stored in ascending order in both. Take a third array(say ar2[]) to store the elements of both the previous arrays so that the resulting elements are also in ascending order.

**Example:**

ar[]={2,4,6,8}

ar1[]={3,5,7,9}

ar2[]={2,3,4,5,6,7,8,9}

**NOTE:** No sorting techniques allowed and no 4th array must be taken

Please help me in this program...

Re: Arrange the elements of 2 arrays and store in a third array without using sorting techniques

Think about how you'd do it in your head and/or with pencil and paper. Write down the steps and try it out on paper. Once you think you understand the paper approach, begin to program that process, taking it a step at a time.