【发布时间】:2013-02-02 10:41:41
【问题描述】:
对于以下代码:
private double currentTime;
private Queue<ScheduledEvent<S>> diary;
public Simulation() {
diary = new PriorityQueue<ScheduledEvent<S>>;
}
在一个名为 Simulation<S> 的抽象类中,我遇到了以下所有 Eclipse 错误。
Syntax error on tokens, delete these tokensSyntax error, insert ">>" to complete ReferenceType2Syntax error, insert "AssignmentOperator Expression" to complete AssignmentSyntax error, insert ";" to complete BlockStatements
原因是什么?我没有看到任何可能导致这种情况的拼写错误或空作业。
【问题讨论】: