Java 教程
toUpperCase() 方法將字符串小寫字符轉(zhuǎn)換為大寫。
public String toUpperCase() 或 public String toUpperCase(Locale locale)
無
字符轉(zhuǎn)換為大寫后的字符串。
public class Test { public static void main(String args[]) { ????String Str = new String(""); System.out.print("返回值 :" ); System.out.println( Str.toUpperCase() ); ????} }
以上程序執(zhí)行結(jié)果為:
返回值 :WWW.JSON.COM