Question: X 9 0 7 : make Copy Write a method that will make a copy of an array. The method takes one parameter, orig. The

X907: make Copy 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: Feedback 1 public int[] makeCopy(int[] orig)0.0/2.0 Result Behavior makeCopy({1,10,100,1000)) Expected:<[1,10,100,1000)> but was:<[1,11,100,1000]> makeCopy({1,2,4}) Expected:<[1,2,4> but was:<[1,3,4]> Check my answer! Reset Next exercise 0 hidden test(s)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!