Question: How can the functionality of the array list class be further improved? Functionality can be improved by adding additional methods for common operations on a

How can the functionality of the array list class be further improved? Functionality can be improved by adding additional methods for common operations on a array list needed by your application.
Can you think of any? I can, see my list below.
getMax() return the largest value found in the array list.
getMin() return the smallest value in the array list.
equals(..) receives an array list a parameter and compare every object in the calling list with every object in the parameter list to determine equality.
getUnique() return a list without duplicates example (1,2,1,3,5,4,2,1) return (1,2,3,4,5)
isPalindrome() return true is the list is a palindrome meaning that is reads the same front to back as back to front example (1,2,3,3,2,1) and (p,e,e,p).
getFiltered(..) this method receives a parameter and will return values larger (if needed smaller) than the parameter. example (1,2,5,4,6,3,7,9) parameter (4) return (5,6,7,9).
For this assignment use your classes created in Assignment 1 place them in an array list. Alter them so that you are able to compare a particulate chosen data field.
Write your own method to perform some operation on your list. Then test your method extensively.
Please write code

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 Programming Questions!