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.
I would go for this solution. It's very compact, readable and doesn't need any extra imports.
You don't have to explicitly cast int type to long, the compiler will do it for you. The other story would be if you tried to assign long value to int variable - that's the case when explicit casting would be obligatory. Nonetheless, good work! Keep practicing :)
Your turn! :)