我想创建一个新的String [] []数组,但日食给我一个错误:分配双字符串数组
public class CurriculumVitae {
String[][] education = new String[2][6]; //throws error here and expects "{" but why?
education[0][0] = "10/2012 − heute";
education[0][1] = "Studium der Informatik";
education[0][2] = "Johannes Gutenberg−Universit \\”at Mainz";
education[0][3] = "";
education[0][4] = "";
education[0][5] = "";
education[1][0] = "10/2005 − 5/2012";
education[1][1] = "Abitur";
education[1][2] = "Muppet-Gymnasium";
education[1][3] = "Note: 1,3";
education[1][4] = "";
education[1][5] = "";}
是什么错误讯息? – tod
“令牌上的语法错误”;“,{expected before the token” – Tak3r07
初始化值必须定义这种类型的数据结构(数组)因此,应该使用构造函数。 – TeachMeJava