返回列表 發帖
  1. public class Ch01
  2. {
  3.         public static void main(String[] args)
  4.         {
  5.                
  6.           if(args.length>0)
  7.           {
  8.               System.out.println("你剛輸入的參數依序為...");
  9.               for(int i=0;i<args.length;i++)
  10.                   System.out.println("args["+i+"]="+args[i]);
  11.           }
  12.           else
  13.           System.out.println("未輸入任何參數");
  14.         }
  15. }
複製代碼

TOP

返回列表