17) Write a complete Java program that prompts the user for a phrase. The program converts and displays the phrase in uppercase letters.
What will be an ideal response?
```
import java.util.Scanner;
public class convertToUpper
{
public static void main(String[] args)
{
//Create a scanner object for input
Scanner keyboard = new Scanner(System.in);
System.out.println("Enter a phrase and I'll convert it to uppercase.");
String phrase = keyboard.nextLine();
System.out.println(phrase.toUpperCase());
}
}
```
You might also like to view...
Which of the following organizations offers the CCE Boot Camp Training program?
a. International Society of Forensic Computer Examiners b. Digital Forensics Certification Board c. Information Assurance Certification Review Board d. Global Information Assurance Certification
The numbers that appear on the left side of a slide indicate the animation order of the item they precede
Indicate whether the statement is true or false
In a Word document, the character indicates that the Enter key has been pressed
Indicate whether the statement is true or false
You can hide a portion of a picture you don't want to be seen by ____________________ it.
Fill in the blank(s) with the appropriate word(s).