Syntax of toUpperCase Java
public String toUpperCase()
Return Type: It returns the string in uppercase letters.
Java String toUpperCase() Method
The Java String toUpperCase() method of the String class has converted all characters of the string into an uppercase letter. There is two variant of toUpperCase() method. The key thing that is to be taken into consideration is toUpperCase() method worked the same as to UpperCase(Locale.getDefault()) method as internally default locale is used. In this article, we will learn about String toUpperCase() Method in Java.
Contact Us