Question: Data structer Write a generic method called delete() that receive a generic type array. The method to delete middle element in the array. Then call
Write a generic method called delete() that receive a generic type array. The method to delete middle element in the array. Then call the method in the main to test it. Example: Input array: 4,1,3,5,8. If you print array after delete is: 4,1,5,8, null. Input array: y, , p, h, o, a. If you print array after delete is: y, r, p, o, a, null
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
