String result1 = "JAVA";
String result2 = "springcloud";
/**
* toLowerCase()
* 大写转小写
*/
System.out.println(result1.toLowerCase());
/**
* 小写转大写
* toUpperCase()
*/
System.out.println(result2.toUpperCase());
运行截图如下: