Question: Suppose you are writing a method called revAL that has an ArrayList of Integer as a parameter [ revAL(ArrayList inList) ] which returns another ArrayList

Suppose you are writing a method called revAL that has an ArrayList of Integer as a parameter [ revAL(ArrayList inList) ] which returns another ArrayList called outList, with the elements as inList in reverse order. Suppose you have to write the code for revAL.

a. Write an algorithm for your method.

b. What test data would you use for your algorithm? Explain.

c. Write the code for the revAl using your algorithm.

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!