How do I enter this array as an input for Java.
[[1, 5, [2, 3]], [2, 3, []], [3, 3, []]]
I've tried
int[][][] arr = {{1,5,{2,3}}, ...};
int[][] arr = ...
but both do not work. How do I do this??? Is the only way to do this is via a List???
How do I enter this array as an input for Java.
[[1, 5, [2, 3]], [2, 3, []], [3, 3, []]]
I've tried
int[][][] arr = {{1,5,{2,3}}, ...};
int[][] arr = ...
but both do not work. How do I do this??? Is the only way to do this is via a List???