谢谢,,
 
  这个参数在main 中怎么使用?

解决方案 »

  1.   

    javac aaa bbb,其中aaa是你的程序的名字, bbb就是string[ ] args 明白否
      

  2.   

    jqzw(昕)  这个我当然明白,  我是问 在main 中是怎样使用 比如传入 参数为 a,b,c
      

  3.   

    就像访问一般数组那样使用args就行了
    args[1]
    args[2]
    ...
      

  4.   

    The java compiler insists that args be there because they hold the arguments invoked on the command line.
      

  5.   

    是主涵数参数列表
    访问或调用时应写成
    args[0]
    args[1]
    ...