





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






Date Assignment (7) (Copy and paste when necessary) SpeedDating.java /* File: SpeedDating.java
public SpeedDating() { // Constructor has empty body } /**
isDayOfThanksgiving.next() ; // Add days until it's that time! } // Eventually, the fourth Thursday will appear while ( !isDayOfThanksgiving.getDayOfWeek().equals( "Thursday" ) ) ; int day = isDayOfThanksgiving.getDay() ; // Get day of holiday // Return the holiday to be on that day in the year given return isDayOfThanksgiving ; } /**
text = JOptionPane.showInputDialog("Type: 11_2_2011_12_25_2011 where "
Date thanksgiving = countdown.getThanksgiving(year) ; // You can't print the date directly, so this is required for printing String print = countdown.getThanksgiving(year).getLongDate() ; System.out.println("Thanksgiving for the year " + year + " is on "