Java String Touppercase
# Java toUpperCase() Method
[Java String Class](#)
* * *
The toUpperCase() method converts all lowercase characters in the string to uppercase.
### Syntax
public String toUpperCase() or public String toUpperCase(Locale locale)
### Parameters
* None
### Return Value
The string with characters converted to uppercase.
### Example
public class Test { public static void main(String args[]) { String Str = new String("www."); System.out.print("Return Value :" ); System.out.println( Str.toUpperCase() );}}
The output of the above program is:
Return Value :WWW.
* * Java String Class](#)
YouTip