2 dimensional array for each loop code example
Example: reading a 2d array with for each loop
for (int[] u: uu) {
for (int elem: u) {
// Your individual element
}
}
for (int[] u: uu) {
for (int elem: u) {
// Your individual element
}
}