请问一下参考代码中的names.length为啥不用-1
public class HelloWorld {
public static void main(String[] args) {
// 定义两行三列的二维数组并赋值
String [][] names={{"tom","jack","mike"},{"zhangsan","lisi","wangwu"}};
// 通过二重循环输出二维数组中元素的值
for(int i=0;i<=names.length-1;i++){
for(int i2=0;i2<=names[i].length-1;i2++){
System.out.println(names[i][i2]);
}
System.out.println();
}