Question: 2. This problem asks you to write a generic method, and call it. Write a generic method printBackwards which receives an array of any type

2. This problem asks you to write a generic method, and call it. Write a generic method printBackwards which receives an array of any type and prints the array elements backwards (from end to start). You can place the method inside of the provided class ArrayStuff. (a) (b) Create two arrays, one of a primitive value [hint: use a wrapper class] and another of Strings, and call your generic method. public class ArrayStuff public static void main (String [ arg) // Your generic method goes here / ArrayStuff
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
