package gradebook; import java.util.*; import items.*; public abstract class Course { /** *Name of course. */ public String name; /** *Collectiion of sections of this course taught by the Instructor associated with this Gradebook. */ public Collection
sections; /** *Collection of the various grade categories associated with this course. *Grade categories are fixed at the course level. All categories must be represented in all sections. */ public Collection categories; /** *Collection of assignments associated with each category. */ public Collection assignments; /** *Add category to collection. pre: !categories.contains(cate); */ public void addCategory(Category cate) { boolean b = !categories.contains(cate); } /* SPEST PROBLEM: Amother case where .contains is not properly recognized: Invalid invocation: contains(antlr.TestGenerator$arguments_return@636e520f) at line: 33 at character: 14 */ }