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.
can anyone explain why do the last return is 0?
i dont get why it works like that, thanks
Basic
because he is not using return statement in default case so java will throw a compile-time error either you have to write return statement in default case or outside the switch block.
Can someone explain to me why some solutions here have
return 0;
at the end of the function while others don't?is this a requirement in newr java versions?