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

TOP

返回列表