这是什么报错啊?
/85/1571/BhJF/HelloWorld.java:12: error: cannot find symbol
System.out.println( nanme[i][j] );
^
symbol: variable nanme
location: class HelloWorld
1 error
附上代码:
public class HelloWorld {
public static void main(String[] args) {
// 定义两行三列的二维数组并赋值
String[][] names={{"tom","jack","mike"},{"zhangsan","lisi","wangwu"}};
// 通过二重循环输出二维数组中元素的值
for (int i = 0; i <names.length ; i++) {
for (int j = 0; j < names[i].length; j++) {
System.out.println( nanme[i][j] );
}
System.out.println();
}
}
}