Intellij IDEA中如何给main方法赋args
程序:
|
package com.otherExample;
|
1:点击Edit configurations

2:配置Program arguments参数如图:传入多个参数使用换行符即可

3:运行结果:

程序:
|
package com.otherExample;
|
1:点击Edit configurations

2:配置Program arguments参数如图:传入多个参数使用换行符即可

3:运行结果:

原文:https://www.cnblogs.com/sinceForever/p/8454385.html