返回列表 發帖
  1. public class Ch43
  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.           }else
  11.               System.out.println("未輸入任何參數");
  12.         }
  13. }
複製代碼

TOP

返回列表