import java.util.Scanner;public class A04 {
public static void main(String args[]) {
System.out.println("请è¾å
¥å符串ï¼");
String s = new Scanner(System.in).next(); System.out.println("è¾åºç»æï¼");
for (char c : s.toCharArray()) {
if (c >= 'a' && c <= 'z') {
c -= 32;
} else if (c >= 'A' && c <= 'Z') {
c += 32;
}
System.out.print(c);
} }
}
温馨提示:答案为网友推荐,仅供参考