Kyle Pu b782624854 Update version | 6 år sedan | |
---|---|---|
.. | ||
.meta | 6 år sedan | |
src | 7 år sedan | |
README.md | 7 år sedan | |
build.gradle | 7 år sedan |
Implement a clock that handles times without dates.
You should be able to add and subtract minutes to it.
Two clocks that represent the same time should be equal to each other.
In order to satisfy the requirement that two clocks are considered equal just when they are set to the same time, you will need to override the equals
and hashcode
methods in your Clock
class.
For more information on how to override these methods, see this JavaWorld article.
You can run all the tests for an exercise by entering
$ gradle test
in your terminal.
Pairing session with Erin Drummond https://twitter.com/ebdrummond
It's possible to submit an incomplete solution so you can see how others have completed the exercise.