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 mean there's a problem with static var? Inline value is just a magic constant without name and for me it is harder to reason about code locally.
I should use there private static. I could use instance fields if the kata was instance based, but that is not the case.
StringBuffer is way slower than StringBuilder, because it is synchronized. And if nowadays you see StringBuffer anywhere in single threaded code it is archaic (or poorly written) code.
BTW code from kata with +="" whould compile to StringBuilder concentrations, very inefficient ones however.
good job!
static var defined.
first ,U should add this code:
morseCode.isEmpty() return "";
second ,
StringBuffer result
result.append()