Java String toUpperCase() method is used to convert all the characters of the String into upper case.

Syntax

Returns

It returns upper case String.

Java String toUpperCase() Example 1:

Output:

Java String toUpperCase() Example 2:

Output:

 Java String toUpperCase() Example 3:

output:

 Java String toUpperCase(Locale locale) Method Example 4:

Output:

Pin It on Pinterest

Share This