/* 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
{
{
List<List<Integer>> data = new ArrayList<List<Integer>>();
data.
add(Arrays.
asList(1,
2,
3)); data.
add(Arrays.
asList(4,
5,
6)); int[][] res = data.stream().map(l -> l.stream().mapToInt(v -> v).toArray()).toArray(int[][]::new);
for (int i = 0 ; i != res.length ; i++) {
for (int v : res[i]) {
}
}
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS51dGlsLnN0cmVhbS4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCUxpc3Q8TGlzdDxJbnRlZ2VyPj4gZGF0YSA9IG5ldyBBcnJheUxpc3Q8TGlzdDxJbnRlZ2VyPj4oKTsKCQlkYXRhLmFkZChBcnJheXMuYXNMaXN0KDEsIDIsIDMpKTsKCQlkYXRhLmFkZChBcnJheXMuYXNMaXN0KDQsIDUsIDYpKTsKCQlpbnRbXVtdIHJlcyA9IGRhdGEuc3RyZWFtKCkubWFwKGwgLT4gbC5zdHJlYW0oKS5tYXBUb0ludCh2IC0+IHYpLnRvQXJyYXkoKSkudG9BcnJheShpbnRbXVtdOjpuZXcpOwoJCWZvciAoaW50IGkgPSAwIDsgaSAhPSByZXMubGVuZ3RoIDsgaSsrKSB7CgkJCWZvciAoaW50IHYgOiByZXNbaV0pIHsKCQkJCVN5c3RlbS5vdXQucHJpbnQodiArICIgIik7CgkJCX0KCQkJU3lzdGVtLm91dC5wcmludGxuKCk7CgkJfQoKCX0KfQ==