cann we use for each loop on 2d array in java 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
}
}