背景:刚刚学到java的String和StringBuffer类,遇到如标题所示的题. 要求:必须要用到String类的toUpperCase方法和toLowerCase方法 思路:用到StringBuffer类的动态添加方法append的方法 代码如下所示: //import java.util.Scanner; public class demo3 { public static void main(String[] args){ StringBuffer s1 = new StringBu…
Problem Description Eddy usually writes articles ,but he likes mixing the English letter uses, for example "computer science" is written frequently "coMpUtEr scIeNce" by him, this mistakes lets Eddy's English teacher be extremely disco…