輸入一批問號「?」結束的字符,對「?」以前的每一個字符,如果它是大寫字母,輸出相應的小寫字母;如果它是小寫字母,輸出相應的大寫字母;否則,原樣輸出。...

  代碼: 1 import java.io.*; 2 public class Main { 3 public static void main (String [] args) throws IOException{ 4 char c; 5 c=(char) System.in.read(); 6 while(c!='?') { 7
相關文章
相關標籤/搜索