public class Main {
public static void main
(String[] args
) { int[][] array=
{
{1},
{1, 2, 3},
{1, 2, 3, 4, 5},
{1, 2}
};
int x, y;
int[] second;
for (x = 0; x < array.length; ++x) {
second = array[x];
for (y = 0; y < second.length; ++y) {
System.
out.
println(x
+ "," + y
+ ": " + second
[y
]); }
}
}
}
cHVibGljIGNsYXNzIE1haW4gewogICAgcHVibGljIHN0YXRpYyB2b2lkIG1haW4oU3RyaW5nW10gYXJncykgewogICAgICAgIGludFtdW10gYXJyYXk9CiAgICAgICAgewogICAgICAgICAgICB7MX0sCiAgICAgICAgICAgIHsxLCAyLCAzfSwKICAgICAgICAgICAgezEsIDIsIDMsIDQsIDV9LAogICAgICAgICAgICB7MSwgMn0KICAgICAgICB9OwogICAgICAgIGludCB4LCB5OwogICAgICAgIGludFtdIHNlY29uZDsKCiAgICAgICAgZm9yICh4ID0gMDsgeCA8IGFycmF5Lmxlbmd0aDsgKyt4KSB7CiAgICAgICAgICBzZWNvbmQgPSBhcnJheVt4XTsKICAgICAgICAgIGZvciAoeSA9IDA7IHkgPCBzZWNvbmQubGVuZ3RoOyArK3kpIHsKICAgICAgICAgICAgICBTeXN0ZW0ub3V0LnByaW50bG4oeCArICIsIiArIHkgKyAiOiAiICsgc2Vjb25kW3ldKTsKICAgICAgICAgIH0KICAgICAgICAgIFN5c3RlbS5vdXQucHJpbnRsbigpOwogICAgICAgIH0KICAgIH0KfQ==
0,0: 1
1,0: 1
1,1: 2
1,2: 3
2,0: 1
2,1: 2
2,2: 3
2,3: 4
2,4: 5
3,0: 1
3,1: 2