将此String中的所有字符转换为小写,这等同于调用toLowerCase(Locale.getDefault())。
public String toLowerCase()
import java.io.*; public class Test { public static void main(String args[]) { String Str=new String("Welcome to Learnfk.com"); System.out.print("返回值 :"); System.out.println(Str.toLowerCase()); } }
这将产生以下输出-
链接:https://www.learnfk.comhttps://www.learnfk.com/java/java-string-tolowercase.html
来源:LearnFk无涯教程网
返回值 :welcome to learnfk.com
祝学习愉快!(内容编辑有误?请选中要编辑内容 -> 右键 -> 修改 -> 提交!)
Spring Cloud 微服务项目实战 -〔姚秋辰(姚半仙)〕