how can we navigate through the two dimensional array without using nested loops.i.e by using only one loop.
String ar[][]=new String [3][4];
Here's a hint:
int i = 9;
System.out.println(i / 4); // 2
System.out.println(i % 4); // 1
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With