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:

Reset

Practice a different Java exercise

Feedback

Your feedback will appear here when you check your answer.