Flash cards
Review the key moves
1/4
Core idea
What is the main idea behind Java String toUpperCase() Method?
Lesson checks
Practice each idea before moving on
Short Mimo-style checks built from this lesson's code, terms, and sequence.
1Quick choice
Which statement best captures the main point of this lesson?
2Fill blank
Complete the missing token from the example code.
___ txt = "Hello World";3Order
Put the learning moves in the order that makes the concept easiest to apply.
The toUpperCase() method converts a string to upper case letters.
Definition and Usage
Java String toUpperCase() Method
❮ String Methods
Example
String txt = "Hello World";
System.out.println(txt.toUpperCase());
System.out.println(txt.toLowerCase());Definition and Usage
The toUpperCase() method converts a string to upper case letters.
Note
The toLowerCase() method converts a string to lower case letters.
Syntax
public String toUpperCase()Parameters
None.
Technical Details
| Returns: | A String value, representing the new string converted to upper case |
|---|