Lab #7 Array List

$30.00

Category: You will Instantly receive a download link for .zip solution file upon Payment || To Order Original Work Click Custom Order?

Description

5/5 - (3 votes)

Part A) Write the following generic method that returns a new ArrayList. The new list contains the
non-duplicate elements from the original list.
public static ArrayList removeDuplicates(ArrayList originalList)
Use the following program to test your method:
https://raw.githubusercontent.com/cosc1047w18/course/master/Lab7/labSevenPartA.java
Part B) Write the following generic method that returns the maximum element in an array.
public static > E max(E[] list)
Use the following program to test your method:
https://raw.githubusercontent.com/cosc1047w18/course/master/Lab7/labSevenPartB.java
submit the two files to the CMS INCLUDING your working functions.