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
I like it... what keeps the while-body statement from capitalizing the whole -_ delimitted word, and not just the first character? I would think it would return eye_AM_A_HERO instead of eye_Am_A_Hero. No?
\w is a word character
\W is a non-word character
Why so?
it looks nice, though its much better to NOT use regular expressions.
I don't understand the regex, what's the meaning of "(\w)" ?
How does it works ? Can someone write me precise explanation ?
thx, i got it, already.
Ternary expression to check whether the string is longer than 1 char in length, if it's shorter the .substring method will fail so instead just return str. It's good practice to handle edge cases.
Awesome ^^
could u plz explain, using ?true:false; ?
This code fails with "--" as an input. I expected an empty string but had back "--".
This solution gives an incorrect result. "NOT-camMel-case" will be converted to "NOTCamMelCase".
Oh! I thought you meant that the StringBuilder class is not available before Java SE 9 ^^'
All good, thanks for explanation <3
This comment is hidden because it contains spoiler information about the solution
Loading more items...