将此字符串中的所有字符转换为小写。
句法
- String toLowerCase()
参数
没有
返回值
小写的修改字符串。
下面是一个使用这个方法的例子 -
- class Example {
- static void main(String[] args) {
- String a = "HelloWorld";
- println(a.toLowerCase());
- }
- }
当我们运行上面的程序,我们将得到以下结果 -
- Helloworld
转载本站内容时,请务必注明来自W3xue,违者必究。
将此字符串中的所有字符转换为小写。
- String toLowerCase()
没有
小写的修改字符串。
下面是一个使用这个方法的例子 -
- class Example {
- static void main(String[] args) {
- String a = "HelloWorld";
- println(a.toLowerCase());
- }
- }
当我们运行上面的程序,我们将得到以下结果 -
- Helloworld
转载本站内容时,请务必注明来自W3xue,违者必究。
本站QQ群:前端 618073944 | Java 606181507 | Python 626812652 | C/C++ 612253063 | 微信 634508462 | 苹果 692586424 | C#/.net 182808419 | PHP 305140648 | 运维 608723728
W3xue 的所有内容仅供测试,对任何法律问题及风险不承担任何责任。通过使用本站内容随之而来的风险与本站无关。