Question: Write a method called removeEvenLength that takes an ArrayList of strings as a parameter and removes all of the strings of even length from the
Write a method called removeEvenLength that takes an ArrayList of strings as a parameter and removes all of the strings of even length from the list. Print content of ArrayList before and after the method call. For example, list contains ("Art", "is", "long," "life" "is" "short") the output should be ("Art", "long,", "short"). (Note that there is a comma after the word "long").
java
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
