How can I pass command line arguments to a program via Netbeans?

前端 未结 3 1791
旧时难觅i
旧时难觅i 2021-01-26 13:02

I want to use my args array.

I mean this array:

public static void main(String[] args)

Where can I run something like

相关标签:
3条回答
  • 2021-01-26 13:48

    In the run configuration section. Here is how.

    0 讨论(0)
  • 2021-01-26 13:52

    Go to the project properties (either File -> Project properties or richt click on the project in he projects list on the left), select "Run" and there you can set it.

    0 讨论(0)
  • 2021-01-26 14:04

    Check the properties of the java project. There you see the menu item "Run" There you can specify arguments for you commandline.

    0 讨论(0)
提交回复
热议问题