Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Java (https://www.askmehelpdesk.com/forumdisplay.php?f=440)
-   -   TimePeriod java (https://www.askmehelpdesk.com/showthread.php?t=830868)

  • Mar 1, 2017, 06:59 PM
    Elmedina
    TimePeriod java
    TimePeriodOverlap
    Create TimePeriod class that has two fields: start date and end date, both of type java.time.LocalTime.
    Then, by using a test driven development, add an overlapsWith(TimePeriod) method to the class that takes as an argument another time and checks whether these two overlap. Create a test method for each possible scenario.
    The following expression checks whether two periods overlap:
    (StartA < EndB) and (EndA > StartB)
  • Mar 2, 2017, 11:05 AM
    CravenMorhead
    So... what do you need help with?

    Show us your code and your problem and we will help. I will NOT do your homework for you.

  • All times are GMT -7. The time now is 04:21 PM.