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

  13.     }
  14. }
複製代碼

TOP

返回列表