Find Us On: Facebook Twitter Rss Feed Blog
Need To Register? Sign Up Login

Java Date Project

jd41821
jd41821 


develop a tough date project - specific classes and rules Attachments Tags Clarifications

Answers

Java - Extended Date - Solution

dickersonka
dickersonka 



Attached is the solution... Attachments
ExtendedDate.zip (2 K) Download
Preview
System.out.println("Set month 13: " + dt.toString()); dt.setMonth(6); System.out.println("Set month 6: " + dt.toString()); dt.setMonth(2); System.out.println("Set month 2: " + dt.toString()); System.out.println(); dt.setDay(0); System.out.println("Set day 0: " + dt.toString()); dt.setDay(45); System.out.println("Set day 45: " + dt.toString()); dt.setDay(12); System.out.println("Set

Preview
int year) { this.month = month; this.day = day; this.year = year; } // Method to set the date // The instance variables month, day, and year are set according to received parameters. public void setDate(int month, int day, int year){

Preview
whole month if((i + 1) > super.getMonth()){ numDays += daysPerMonth[i] ; } } return numDays; } // Create a new ExtendedDate object with the values that result from adding a number of days to an existing ExtendedDate object. Cannot result in

Screenshots
Purchase Answer