Question: $#^% Use java code, and make sure to also do the client class which tests the ArrayListMethods, so there should be two separate classes, also

$#^% Use java code, and make sure to also do the client class which tests the ArrayListMethods, so there should be two separate classes, also explain your process

$#^% Use java code, and make sure to also do the client

ArrayListMethods Write a class that contains the following methods: - reverse(ArrayList list) that reverses the order of the elements in an ArrayList of strings. - capitalizePlurals(ArrayList list) that accepts an ArrayList of strings and replaces every word ending with ' with its uppercased version. Hint: use ArrayList.endsWith() - removePlurals (ArrayList list) that accepts an ArrayList of strings and removes every word in the list ending with an ', , case-insensitively. - ArrayList list3 intersect(ArrayList list1, ArrayList list2) that accepts two sorted array lists of integers as parameters and returns a new list that contains only the elements that are found in both lists. - Example: if lists named list1 and list2 initially store: list1=[1,4,8,9,11,15,17,28,41,59]list2=[4,7,11,17,19,20,23,28,37,59,81] Then the call of intersect(list1, list2) returns the list: [4,11,17,28,59] Write a client class to test all your methods

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