10.publicclassBar{<br /> 11.staticvoidfoo(int...x){<br /> 12.//insertcodehere<br /> 13.}<br /> 14.}<br /> 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