Java homework, validate inputed date and determine day of the week

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
3,846
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on May 31, 2009

Superb youtube tutorial link: http://www.youtube.com/watch?v=Hl-zzrqQoSE&feature=PlayList&p=FE2CE09...

PG 126, 3.15, Create a class called Date that includes three pieces of information as instance variables--a month (type int), a day (type int) and a year (type int). Your class should have a constructor that initializes the three instance variables and assumes that the values provided are correct. Provide a set and a get method for each instance variable. Provide a method displayDate that displays the month, day and year seperated by forward slashes (/). Write a test application named DateTest that demonstrates class Date's capabilities.
-Requirements for Extra Credit:
--- 1. validate date, should recognize years from at least 1900 up to 3000.
--- 2. provide a method to return the day of the week.

  • likes, 0 dislikes

Link to this comment:

Share to:

Video Responses

This video is a response to Java Programming Tutorial - 22 - for Loops
see all

All Comments (1)

Sign In or Sign Up now to post a comment!
  • lol, you said whatchumacallit =D

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more