Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
You could either see it as future proofing in case someone decides to increase the array but forget to update the return statement, or see it as over-engineering since "phrases.length" will always be 6.
Either way, cool solution.
Streams were introduced with Java 8 in Mar 2014. This kata is dated back to Dec 2013.
Welcome on CW :) The numbers in strings are only in one case. And it's more like a joke. These strings are names of code warriors from the top 50;) The rest of test cases consist of only letters. Thanks for sloving my kata!