返回列表 發帖
  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.             {
  10.                 System.out.println("args["+i+"]="+args[i]);
  11.             }
  12.         }
  13.     }
  14. }
複製代碼

TOP

返回列表