/* package whatever; // don't place package name! */
import java.util.*;
import java.util.stream.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
int[][] data = new int[][] {
new int[] {1, 2, 3}
, new int[] {4, 5, 6}
, new int[] {7, 8, 9}
};
List
<List
<Integer
>> ll
= Arrays .stream(data)
.map(a -> IntStream.of(a).boxed().collect(Collectors.toList()))
.collect(Collectors.toList());
for (List<Integer> l : ll) {
}
}
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS51dGlsLnN0cmVhbS4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewogICAgICAgIGludFtdW10gZGF0YSA9IG5ldyBpbnRbXVtdIHsKCSAgICAgICAgbmV3IGludFtdIHsxLCAyLCAzfQogICAgICAgICwgICBuZXcgaW50W10gezQsIDUsIDZ9CiAgICAgICAgLCAgIG5ldyBpbnRbXSB7NywgOCwgOX0KICAgICAgICB9OwogICAgICAgIExpc3Q8TGlzdDxJbnRlZ2VyPj4gbGwgPSBBcnJheXMKICAgICAgICAgICAgLnN0cmVhbShkYXRhKQogICAgICAgICAgICAubWFwKGEgLT4gSW50U3RyZWFtLm9mKGEpLmJveGVkKCkuY29sbGVjdChDb2xsZWN0b3JzLnRvTGlzdCgpKSkKICAgICAgICAgICAgLmNvbGxlY3QoQ29sbGVjdG9ycy50b0xpc3QoKSk7CiAgICAgICAgZm9yIChMaXN0PEludGVnZXI+IGwgOiBsbCkgewogICAgCSAgICBmb3IgKEludGVnZXIgeCA6IGwpIHsKICAgICAgICAJCVN5c3RlbS5vdXQucHJpbnQoeCsiICIpOwogICAgICAgIAl9CiAgICAJICAgIFN5c3RlbS5vdXQucHJpbnRsbigpOwogICAgICAgIH0KICAgIH0KfQ==