Java实现字母的大小写转换

    技术2022-07-15  80

    String result1 = "JAVA"; String result2 = "springcloud"; /** * toLowerCase() * 大写转小写 */ System.out.println(result1.toLowerCase()); /** * 小写转大写 * toUpperCase() */ System.out.println(result2.toUpperCase());

     

     

    运行截图如下:

    Processed: 0.010, SQL: 9