返回列表 發帖
  1.     import java.io.Console;
  2.          public class nsezz
  3.          {[code]    import java.io.Console;
  4.          public class nsezz
  5.          {
  6.     public static void main(String args[])

  7.     {  String a,b;
  8.          Console  c=System.console()    ;
  9.          System.out.print("輸入字串一=");
  10.          a=c.readLine()                ;
  11.          System.out.println("字串一="+a);
  12.          System.out.print("輸入字串二=");
  13.          b=c.readLine()                     ;
  14.          System.out.println("字串二="+b);
  15.     }


  16.          }
複製代碼
  1. public static void main(String args[])

  2.     {  String a,b;
  3.          Console  c=System.console()    ;
  4.          System.out.print("輸入字串一=");
  5.          a=c.readLine()                ;
  6.          System.out.print("輸入字串二=");
  7.          b=c.readLine()                     ;
  8.          System.out.println("字串一="+a+"\n"+"字串二="+b);
  9.     }


  10.          }
複製代碼

TOP

返回列表