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.
Closing due to lack of evidence of a bug in the kata.
You say
if the character is ""
, which isn't so much a character, but an empty string.The first test for invalid strings is exactly this, and it expects
false
, nottrue
.So, I don't see any issue with the kata here. Can you explain further?
There is a bug when testing using the Java, if the character is "" then it will return false, when I try it in the Intellij IDE it works fine, namely it returns a false value, but when I try to run the program through Codewars it returns the true value