./gradlew test
Implement findOddNumbers
. Add tests. Think about all corner cases.
Implement hasDuplicateChars
. Add tests. Think about all corner cases.
Implement mapBy
. Add tests. Think about all corner cases. Tha about duplicates?
Try to implement two versions of the algorithm - classic with for loop
and the version with streams
(hint: use new SimpleEntry<> (import java.util.AbstractMap.SimpleEntry)
, Collectors.toMap
)
Please try introduce new class or interfaces to build right hierarchy for vehicles.
Hint: inheritance
, composition
, aggregation
, composition
.