Java toLowerCase() 方法

Java 教程 · 2019-02-08 18:27:49

toLowerCase() 方法用于将大写字符转换为小写。

语法

char toLowerCase(char ch)

参数

  • ch -- 要转换的字符。

返回值

返回转换后字符的小写形式,如果有的话;否则返回字符本身。

实例

public class Test {

    public static void main(String args[]) {
        System.out.println(Character.toLowerCase('a'));
        System.out.println(Character.toLowerCase('A'));
    }
}

以上程序执行结果为:

a
a

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

查看所有标签

Text Algorithms

Text Algorithms

Maxime Crochemore、Wojciech Rytter / Oxford University Press / 1994

This much-needed book on the design of algorithms and data structures for text processing emphasizes both theoretical foundations and practical applications. It is intended to serve both as a textbook......一起来看看 《Text Algorithms》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具