X908: expandAndCopyArray

Write a method that takes an argument representing an array, orig, and returns a new array that is 50% bigger than the original one. The new array should also have all the values copied over to the new array.

Examples:

expandAndCopyArray({1, 10}) -> {1, 10, 0}

Your Answer:

Reset

Practice a different Java exercise

Feedback

Your feedback will appear here when you check your answer.