【发布时间】:2015-02-19 18:37:11
【问题描述】:
我在课堂上创建了一个静态字段 c,但它生成了一个错误,提示 illegal start of expression。
请帮我解决这个问题。
public static void main(String[] args) {
System.out.println("program started.");
static Controller c; //Where the error is
try {
Model m = new Model();
View v = new View();
c = new Controller(m,v);
c.sendDataToView();
c.showView();
} catch(Exception ex) {
System.out.println("error");
}
}
【问题讨论】: