X41: plusTwo

Given two int arrays a and b, each with two elements, return a new array with four elements containing all the elements of a followed by all the elements of b.

Examples:

plusTwo({1, 2}, {3, 4}) -> {1, 2, 3, 4}

Your Answer:

x
 
1
public int[] plusTwo(int[] a, int[] b)
2
{
3
    
4
}
5

Feedback

Your feedback will appear here when you check your answer.