美文网首页
idea main 方法接受参数

idea main 方法接受参数

作者: 大晴天小阳光 | 来源:发表于2017-07-26 22:53 被阅读0次

public classEcmDef {

public static voidmain(String[] args) {

inti = Integer.parseInt(args[0]);

intj = Integer.parseInt(args[1]);

System.out.println(i);

}

}

先运行一下 ctrl + shift + F10

然后传入参数

相关文章

网友评论

      本文标题:idea main 方法接受参数

      本文链接:https://www.haomeiwen.com/subject/hprokxtx.html