Search:

Type: Posts; User: GregBrannon

Search: Search took 0.10 seconds.

  1. Replies
    4
    Views
    1,098

    Re: Need some help testing created class.

    Good. Then this is what I recommend you do:

    Create an array constant, something like:

    String[] DAY_OF_WEEK = { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" };

    Then in your constructor,
    ...
  2. Replies
    4
    Views
    1,098

    Re: Need some help testing created class.

    Do you know or can you use Arrays yet?

    Your constructor is a little twisted. You won't set the variables 'Mon' through 'Sun' based on the parameter Day (which should be called 'day'). In fact,...
Results 1 to 2 of 2