X907: makeCopy

Write a method that will make a copy of an array. The method takes one parameter, orig. The method should make a new array the same size as the original one, orig, and you must copy the elements.

Examples:

makeCopy({1, 10, 100, 1000}) -> {1, 10, 100, 1000}

Your Answer:

Reset

Practice a different Java exercise

Feedback

Your feedback will appear here when you check your answer.