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 return
isPalindrome return true is the list is a palindrome meaning that is reads the same front to back as back to front example and peep
getFiltered this method receives a parameter and will return values larger if needed smaller than the parameter. example parameter return
For this assignment use your classes created in Assignment 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
