10.publicclassBar{ 11.staticvoidfoo(int...x){ 12.//insertcodehere 13.} 14.} Which two code fragments,inserted independently at line1 2,will allow the class to compile()
A. foreach(x)System.out.println(z);
B. for(intz:x)System.out.println(z);
C. while(x.hasNext())System.out.println(x.next());
D. for(inti=0;i
查看答案
该试题由用户331****13提供
查看答案人数:8028
如遇到问题请
联系客服
正确答案
该试题由用户331****13提供
查看答案人数:8029
如遇到问题请联系客服