Hey Java Gurus! I need help thinking through the programming logic for a method.
Lets say I have a HotelRoom object that has two Strings - CheckIn "Jan-01-10" and CheckOut - "Jan-05-10".
I would like to write a method that could take those two Strings and check for the range of dates.
I'll post the method I have to check for a single date. How would I check for a range?
As always...thanks so much for your valuable time.
As an aside, you should create a new SimpleDateFomat an not parse date "one" inside the for loop. The value will remain the same each time so you should move it to the start of the method and reuse the result i.e.