Intellij IDEA中如何给main方法赋args
程序:
package com.otherExample;
|
1:点击Edit configurations
2:配置Program arguments参数如图:传入多个参数使用换行符即可
3:运行结果:
sinceForever 2018-02-19 20:43 原文
程序:
package com.otherExample;
|
1:点击Edit configurations
2:配置Program arguments参数如图:传入多个参数使用换行符即可
3:运行结果: