For the following code:
private double currentTime;
private Queue<ScheduledEvent<S>> diary;
public Simulation() {
diary = new PriorityQueue<ScheduledEvent<S>>;
}
within an abstract class called Simulation<S> I’m getting all of the following Eclipse errors.
Syntax error on tokens, delete these tokensSyntax error, insert ">>" to complete ReferenceType2Syntax error, insert "AssignmentOperator Expression" to complete AssignmentSyntax error, insert ";" to complete BlockStatements
What is the cause? I don’t see any typos or empty assignments that could cause this.
Because you’re missing
()You’re calling the constructor, and even when not passing any arguments that still requires
()