Level of Difficulty: Easy
- Test Driven Development. Using the "RED-GREEN-REFACTOR" principle
- If applicable have both positive and negative test cases
- Have fun !!!
- Did we mention TDD already
- Streams - This Kata can also be accomplished without the use of streams
- Don't read steps ahead
- Create a class called MostMethodsAreInThisClass
- Create a method named willConvertToUpperCase which will take a list of String as input and it will output a list of Strings
- The method willConvertToUpperCase should be able to return all the objects in the list in UPPERCASE
- In the class MostMethodsAreInThisClass
- Create a method named getPlacesMoreThanTenCharLong which will take a list of String as input and it will output a list of Strings
- The method getPlacesMoreThanTenCharLong should be able to return all the objects in the list which are more than 10 character long
- In the class MostMethodsAreInThisClass
- Create a method named flattenSomeCollections which will take lists of Strings as input and it will output a list of Strings
- The method flattenSomeCollections should be able to take objects from these multiple lists and combine it all into one list.
- In the class MostMethodsAreInThisClass
- Create a method called summaryStats which will take a list of Integers as input and will return IntSummaryStatistics
- The method summaryStats should be able to
a) return the sum of numbers
b) return the number of numbers in the list
c) return the minimum of the numbers in the list
d) return the maximum of the numbers in the list
e) return the average of the numbers in the list
_**Suggestion: All these computations should be accomplished by the method summaryStats **
- Create a class called Name
- This class takes a couple of input parameters named firstname and age
- Create a method in this class named getAdults which will take a list of Names as the input and will output a list of Strings
- The method getAdults should be able to return all the distinct adults (>=18) in the list.
_**Suggestion: If you are up for it, try lombok **
- This is an Optional step
- If you have done stages 1 through 5 using streams create a new package and repeat those steps without using streams. Skip step 3
- If you have done stages 1 through 5 without using streams create a new package and repeat those steps using streams.
- This is an Optional step
- Now assume that a evil genius has taken over one of your class and is intent on modifying the method signatures.
- Your mission if you wish to accept it is to thwart the evil genius from doing so. MAY THE INTERFACE BE WITH YOU !!