Java toUpperCase () method
toUpperCase () method to a string lowercase characters converted to uppercase.
grammar
public String toUpperCase() 或 public String toUpperCase(Locale locale)
parameter
no
return value
Uppercase characters converted to a string after.
Examples
public class Test { public static void main(String args[]) { String Str = new String("www.w3big.com"); System.out.print("返回值 :" ); System.out.println( Str.toUpperCase() ); } }
The above program execution results:
返回值 :WWW.w3big.com