[问题] OCJP SE6 - command-line invocations

楼主: uopsdod (pcman)   2017-02-20 21:35:50
public class Prac {
public static void main(String[] args) throws Exception{
int x = 6;
Prac p = new Prac();
p.doStuff(x);
System.out.println(" main x = " + x);
}
void doStuff(int x){
System.out.println(" doStuff x = " + x++);
}
}
And the command-line invocations:
javac Prac.java
java Prac 5
作者: haha02 (来人!上夹棍!)   2017-02-20 22:35:00
尽信书不如无书
作者: qrtt1 (有些事,有时候。。。)   2017-02-21 08:10:00
你的 code 跟你的问题对不上来 xd
楼主: uopsdod (pcman)   2017-02-21 23:48:00
我想我是要确定谁对谁错噢 没有信书不信书的问题
作者: eieio (好多目标)   2017-02-22 16:18:00
我用 https://www.codechef.com/ide 跑,你的答案正确啊
作者: haha02 (来人!上夹棍!)   2017-02-23 20:14:00
跑下去的结果就是真正的答案啊 找个人同意才能让说服自己的话会很辛苦喔 因为大部分孤狗到的资源都要自己辨别真伪这种很明显是答案写错的就有自信一点吧
楼主: uopsdod (pcman)   2017-02-25 06:33:00
资源本来就不嫌多。如果能多一个人讨论那总是更好Google资源本来就会用,也会自己辨真伪。但也不代表多问人不好是吧?感谢大家帮忙验证 那我了解了

Links booklink

Contact Us: admin [ a t ] ucptt.com