118k views
1 vote
In this exercise, you are given a phrase and need to return that phrase in all capital letters.

Example:

screaming("Hello World") --> "HELLO WORLD"
screaming("good morning") --> "GOOD MORNING"

This is in Java.

User Md Aslam
by
4.8k points

1 Answer

3 votes

Answer:

Answer is in my provided screenshot!

Step-by-step explanation:

Luckily, Java has a built in function that takes a String and turn it into an upper-case variant. We can just call on that function and return the result.

In this exercise, you are given a phrase and need to return that phrase in all capital-example-1
User Mr Rivero
by
5.7k points