2 Replies Latest reply: Oct 12, 2006 2:37 PM by 800241 RSS

    Date

    807607
      how do i write a class "Date" that represents a day in the year. The class should have a type String data field for month and type int data fields for day and year. It should also include a reset() method that changes the Date to which it is applied back to the first day of the year.
        • 1. Re: Date
          807607
          Do you know how to write any Java classes at all? Your instructions for what 'Date' must contain are pretty straightforward.
          • 2. Re: Date
            800241
            how do i write a class "Date" that represents a day
            in the year. The class should have a type String data
            field for month and type int data fields for day and
            year. It should also include a reset() method that
            changes the Date to which it is applied back to the
            first day of the year.
            Try writing something and then get back to us. If you have absolutely no idea how to start then either pick up your book or ask for some tutorials - or better yet have a look around with google and find some tutorials on your own.