ignore this message, it works perfectly well.
Caution: This kata does not currently have any known supported versions for Java. It may not be completable due to dependencies on out-dated libraries/language versions.
So, it doesn't work for Java :(
Great exercise. Thank you.
(Also I added random tests)
Can you name an example, please?
Some expected results are too big for type long in Java
I liked this Kata a lot. It made me think of algorithms in a different way and was challenging, espically for a newbie like me.
The import is still wrong in example test cases
Check test please.
"email@example.com_a...." return true;
"firstname.lastname@example.org" return true;
"email@example.com_._asdf" return true;
"firstname.lastname@example.org" return false;
Thanks for this translation and sorry it took me so long to get to it. I forked it and removed all mentions of ruby.
I already put a comment on the kata discussion and found that the newer test cases catch these inputs. I think your solution was submitted before this.
Clearly the tests need to be updated then. Wonder if the author of the kata will see this soon.
There is a small (but critical) typo in your solution, which makes me wonder why it passed the tests ;)
You check for '(' in both cases and never for ')', so the algorithm would accept for example ((((()