• 2022-07-23
    执行()程序段之后将出现错误提示。
    A: int[]arr={11,21,31}; for(intx:arr) System.out.println(x);
    B: Object[]obj=newString[]{"111","2222","3333"}; String[]str=(String[])obj;
    C: Object[]obj={"111","2222","3333"}; String[]str=(String[])obj;
    D: Object[]arr=newFloat[]{11.1F,22.1F,33.3F,44.44F,55.55F}; for(Floatx:(Float[])arr) System.out.println(x);