A Set is an UNORDERED collection that contains NO DUPLICATE values.
Typical Java Set methods:
- add(String)
- addAll(List)
- addAll(Set)
- clear( )
- clone( )
- contains(String)
- containsAll(List)
- containsAll(Set)
- equals(Set)
- hashCode( )
- isEmpty( )
- remove(String)
- removeAll(List)
- removeAll(Set)
- retainAll(List)
- retainAll(Set)
- Size( )
TDD Katas are exercises used for practicing Test Driven Development which follows the red, green, refactor mantra.
Other things to practice while doing your TDD Katas:
IDE Keyboard Short Cuts:
Strings are used in this example, but Object could also be used.