Fiveable
Fiveable

toUpperCase()

Definition

The toUpperCase() method is a built-in function in Java that converts all the characters in a string to uppercase letters.

Analogy

Think of the toUpperCase() method as a magical spell that transforms lowercase letters into uppercase ones, just like how waving a wand can turn a frog into a prince.

Related terms

toLowerCase(): This is another built-in function in Java that converts all the characters in a string to lowercase letters.

charAt(): This method returns the character at a specified index position within a string.

length(): The length() method returns the number of characters in a string.

collegeable - rocket pep

Are you a college student?

  • Study guides for the entire semester

  • 200k practice questions

  • Glossary of 50k key terms - memorize important vocab



© 2024 Fiveable Inc. All rights reserved.

AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.


© 2024 Fiveable Inc. All rights reserved.

AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.