第二次作业

4、给定一个任意的大写字母A~Z,转换为小写字母。 (知识点:变量和运算符)
package shda; public class sjlx { public static void main(String[] args) { // TODO Auto-generated method stub String SS="ABCDE"; String AA="abcde"; // 大写转小写关键字:toLowerCase() // 小写转大写:toUpperCase() System.out.println(SS.toLowerCase()); System.out.println(SS.toUpperCase()); } }

  

原文地址:https://www.cnblogs.com/bwk521/p/12523176.html