java中大写转小写的方法 ^
在Java中,可以使用toLowerCase()方法将字符串中的大写字母转换为小写字母。
示例代码如下:
String str = "Hello World";
String lowercaseStr = str.toLowerCase();
System.out.println(lowercaseStr);
输出结果为:
hello world
原文地址: https://www.cveoy.top/t/topic/jcbk 著作权归作者所有。请勿转载和采集!