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.
This comment is hidden because it contains spoiler information about the solution
It would be two because two is the default case in the ternary operator.
i know about it, that better is make variable local as private :)
The next step is this other Kata I made thanks to the people that said it was too easy hope you enjoy it https://www.codewars.com/kata/printing-array-elements-with-comma-delimiters-ii
Because there's a suble difference between int.class and Integer.class and that's part of the philosophical core of Java language: "not all is Object to enhace performance".
Raise an issue at codewars github not here since I haven't ranked it.