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

TOP

返回列表