Java toLowerCase() 方法

Java 教程 · 2019-02-09 07:44:17

toLowerCase() 方法将字符串转换为小写。

语法

public String toLowerCase()

或

public String toLowerCase(Locale locale)

参数

返回值

转换为小写的字符串。

实例

public class Test {
    public static void main(String args[]) {
        String Str = new String("WWW.CODERCTO.COM");

        System.out.print("返回值 :" );
        System.out.println( Str.toLowerCase() );
    }
}

以上程序执行结果为:

返回值 :www.codercto.com

点击查看所有 Java 教程 文章: https://www.codercto.com/courses/l/12.html

查看所有标签

Algorithms in C, Parts 1-4

Algorithms in C, Parts 1-4

Robert Sedgewick / Addison-Wesley Professional / 1997-9-27 / USD 89.99

"This is an eminently readable book which an ordinary programmer, unskilled in mathematical analysis and wary of theoretical algorithms, ought to be able to pick up and get a lot out of.." - Steve Sum......一起来看看 《Algorithms in C, Parts 1-4》 这本书的介绍吧!

URL 编码/解码
URL 编码/解码

URL 编码/解码

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具