logo CodeStepByStep logo

removeEvenLength

Language/Type: Java ArrayList Collections
Related Links:

Write a method named removeEvenLength that accepts an ArrayList of strings as a parameter and that removes all of the strings of even length from the list. For example, if an ArrayList variable named list contains the values ["hi", "there", "how", "is", "it", "going", "good", "sirs"], the call of removeEvenLength(list); would change it to store ["there", "how", "going"].

Method: Write a Java method as described, not a complete program or class.

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.