作者trantor (阿精米德)
看板Eclipse
標題[請益] 如何用elipse增加執行時的參數
時間Sun May 30 20:45:26 2010
如題,怎樣能像cmp打指令那樣:
java class_name 後面接給main的參數
我上網查過,要用Run Configurations,
可是我不知道裡面的program arguments要如何設定
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 111.240.228.151
1F:→ chicoff:Run Configurations→(x)Arguments 05/31 23:25
2F:→ chicoff:裡面填test abc (空白隔開) 05/31 23:31
3F:→ chicoff:args[0]="test", args[1]="abc" 05/31 23:32
4F:→ chicoff:前提 main(String[] args) 05/31 23:33
5F:→ trantor:謝謝~ 06/01 22:12
6F:→ trantor:可是我還是不太清楚test abc和arg[0]..要填在哪 06/01 22:20