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

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

3:运行结果:

标签:intel oid log 分享图片 [] rgs 运行 package span
程序:
|
package com.otherExample;
|
1:点击Edit configurations

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

3:运行结果:

标签:intel oid log 分享图片 [] rgs 运行 package span
原文地址:https://www.cnblogs.com/sinceForever/p/8454385.html