lots of exercises in java... from https://github.com/exercism/java
Stuart Kent 54cf4a6c28 Restructure exercise directory 9 年之前
..
.meta Restructure exercise directory 9 年之前
src Restructure exercise directory 9 年之前
README.md Replace exercise templates with track-level default 9 年之前
build.gradle Format build.gradle files 9 年之前

README.md

Clock

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.

To run the tests:

$ gradle test

For more detailed info about the Java track see the help page.

Source

Pairing session with Erin Drummond https://twitter.com/ebdrummond

Submitting Incomplete Solutions

It's possible to submit an incomplete solution so you can see how others have completed the exercise.