コードの断片を考えると、次のようになります。 public class Test { static String[][] arr =new String[3][]; private static void doPrint() { //insert code here } public static void main(String[] args) { String[] class1 = {"A","B","C"}; String[] class2 = {"L","M","N","O"}; String[] class3 = {"I","J"}; arr[0] = class1; arr[1] = class2; arr[2] = class3; Test.doPrint(); } } //insert code here の行に挿入されると、コードで COJ を出力できるコード フラグメントはどれですか?
正解:B
Incorrect: not A: The following line causes a compile error: System.out.println(str[j]); Not C: Compile erro line: for (String[] sub: arr[][]) not D: Output: C