请问怎样给二维String类型数组初始化
请问怎样给二维String类型的数组初始化。String[][] rowData = {{"wang","20"},{"liu","21"},{"li","19"}};
但是如果我用:
String[][] rowData = null;
rowData[0][0] = "wang";
rowData[0][1] = "20";
... ...
则会出现Exception in thread "main" java.lang.NullPointerException的错误。