String result1 = "JAVA";
String result2 = "springcloud";
/**
* toLowerCase()
* 大写转小写
*/
System.out.println(result1.toLowerCase());
/**
* 小写转大写
* toUpperCase()
*/
System.out.println(result2.toUpperCase());
运行截图如下:
转载请注明原文地址:https://ipadbbs.8miu.com/read-26810.html