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.
not readable
Final is class and hence object of String, but not reference to this object.
example:
String foo = "foo";
String bar = "bar";
foo = bar;
System.out.println(foo); // bar
And it's a good practice to make method arguments final because it increase code readability
It will be better for readability and for DRY sake, rather on efficiency.
not readable
too procedural
java language
tests not compile and not able to finally check solution because you use '' quotes instead of "" for strings, '' only for char. How this cata was approved?
very bad explanation and code quality (especially tests) java version of this kata
switch is kind of if else statements it is not best practice and not what task description talking about
Because site doesn't allow to downvote garbage solutions and teach people to bad things in this way
really awfull
the most human readable solutions always is better
keep it simple
Why you did not use simple iterator like in my solution, keep it simple (KISS)
Because this site doesn't allow to downvote like stackoverflow and others!!! In this way many really bad solutions pop up in top like shit in real life :)
Loading more items...