程序如下:编译不能通过,但是书上说是可以的啊?
public class Mat
{ public static void main(String args[])
{
int mat[2][3]={ {1,2,3},{4,5,6} };
}
}
------解决方案--------------------
int mat[][]={ {1,2,3},{4,5,6} };
------解决方案--------------------
LZ您这样写
public class Mat
{ public static void main(String args[])
{
int mat[][]={ {1,2,3},{4,5,6} };
}
}
int mat[2][3]表示的是第2行第三个元素的赋值
------解决方案--------------------
《java2入门经典》超级无敌好书 超级无敌贵~
------解决方案--------------------
现在的书,哎
------解决方案--------------------
head first java 英文版不错,现在好像有了中文版的,不知道好不好