Search:

Type: Posts; User: andbin

Search: Search took 0.10 seconds.

  1. Replies
    8
    Views
    997

    Re: checkbox not working right

    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...
  2. Replies
    8
    Views
    997

    Re: checkbox not working right

    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...
  3. Replies
    8
    Views
    997

    Re: checkbox not working right

    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...
  4. Replies
    8
    Views
    997

    Re: checkbox not working right

    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...
Results 1 to 4 of 4