toLowerCase() 方法将字符串转换为小写。
public String toLowerCase()
或
public String toLowerCase(Locale locale)
无
转换为小写的字符串。
public class Test {
public static void main(String args[]) {
String Str = new String("WWW.ITZIXISHI.COM");
System.out.print("返回值 :" );
System.out.println( Str.toLowerCase() );
}
}
以上程序执行结果为:
返回值 :www.itzixishi.com
©2020 IT自习室京ICP备20010815号