Groovy - toLowerCase()
将此字符串中的所有字符转换为小写。
语法
String toLowerCase()
参数
None
返回值
修改后的小写字符串。
以下是该方法的用法示例 −
class Example {
static void main(String[] args) {
String a = "HelloWorld";
println(a.toLowerCase());
}
}
当我们运行上面的程序时,会得到下面的结果 −
helloworld

