X237: listUpper

Write a method called listUpper() that takes in a list of strings, and returns a list of the same length containing the same strings but in all uppercase form. You can either modify the provided list or create a new one.

Examples:

listUpper(list("a", "an", "being")) -> list("A", "AN", "BEING")
listUpper(list("every", "gator", "eats")) -> list("EVERY", "GATOR", "EATS")
listUpper(list()) -> list()

Your Answer:

Reset

Practice a different Java exercise

Feedback

Your feedback will appear here when you check your answer.