返回列表 發帖
  1. public class ch01
  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.          else
  12.           System.out.println("為輸入任何參數");


  13.        }

  14. }
複製代碼
:))))))))))))))

TOP

返回列表