多项选择题
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
单项选择题 String[] elements={"for","tea","too"}; String first=(elements.length>0)?elements[0]null; What is the result?()
单项选择题 11.public static void main(String[]args){ 12.Object obj=new int[]{1,2,3}; 13.int[] someArray=(int[])obj; 14.for(inti:someArray)System.out.print(i+"") 15.} What is the result?()
多项选择题 Which two code fragments correctly create and initialize a static array of int elements()