返回列表 發帖
  1. import java.io.Console;
  2. public class ch05
  3. {
  4.     public static void main(String args[])
  5.     {
  6.           String str1,str2;
  7.           Console f=System.console();
  8.           str1=f.readLine("輸入字串一:  ");
  9.           System.out.println("字串一:  "+str1);
  10.           str2=f.readLine("輸入字串二:  ");
  11.           System.out.println("字串二:  "+str2);
  12.     }
  13. }
複製代碼

TOP

返回列表