Java toLowerCase() 方法
toLowerCase() 方法將字符串轉換為小寫。
語法
public String toLowerCase() 或 public String toLowerCase(Locale locale)
參數(shù)
無
返回值
轉換為小寫的字符串。
實例
public class Test { public static void main(String args[]) { String Str = new String("m.o2fo.com"); System.out.print("返回值 :" ); System.out.println( Str.toLowerCase() ); } }
以上程序執(zhí)行結果為:
返回值 :m.o2fo.com
更多建議: