idea main 方法接受参数

2017-07-26  本文已影响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

然后传入参数

上一篇 下一篇

猜你喜欢

热点阅读