如何在不使用嵌套循环的情况下通过只使用一个循环来遍历二维数组。
String ar[][]=new String [3][4];
这里有一个提示:
int i = 9; System.out.println(i / 4); // 2 System.out.println(i % 4); // 1