что не так с кодом а точнее с "k"?
что в ответе что у меня все одинаково, в чем проблема не пойму, помогите разобраться?
package com.javarush.task.pro.task05.task0512;
/*
Создаем мультимассив
*/
public class Solution {
public static int[][][] multiArray = new int[][][]{{{4, 8, 15}, {16}}, {{23, 42}, {}}, {{1}, {2}, {3}, {4, 5}}};
public static void main(String[] args) {
for(int i=0; i<multiArray.length; i++){
for(int j = 0; j<multiArray[i].length; j++){
for(int k = 0; k<multiArray[i][j]; k++){
System.out.print(multiArray[i][j][k] + " ");
}
System.out.println();
}
System.out.println("----------");
}
}
}