返回列表 發帖
本帖最後由 孫焌仁 於 2019-1-24 15:20 編輯
  1. public class Ch46
  2. {
  3.     public static void main(String args[])
  4.     {
  5.          if(args.length>0)
  6.          {
  7.                System.out.println("您剛輸入的參數依序為...");
  8.                for(int i=0; i<args.length; i++)
  9.                    System.out.println("args["+i+"]="+args[i]);
  10.          }
  11.     }
  12. }
複製代碼

TOP

返回列表