For what I can know/understand, at conceptual level, yes a "course" can have many prerequisites, so it has sense to keep id, code, title and N prerequisites (as an array).
And note: your class...
Type: Posts; User: andbin
For what I can know/understand, at conceptual level, yes a "course" can have many prerequisites, so it has sense to keep id, code, title and N prerequisites (as an array).
And note: your class...
static method toString of java.util.Arrays. It formats an array into a string with a fixed format like [xxx,yyy ...... ]
If you don't like this format, use a simple for loop to print or format a...
Here I see a constructor with 4 parameters but in the new Courses (code,title, prerequisites) you pass 3 arguments.
How many constructors do you have? Several in overload? Then it's ok.
If...
First, your HTML output seems not correct. You should put a " ' " after prerequisites.
out.println("Prerequisite(s): <input type='checkbox' name='prerequisites' value='CS320' >
Since you have...