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... i didnt knew .reverse() was a thing...
Me too! First try! Am I getting... better at this??
This comment is hidden because it contains spoiler information about the solution
Then, is better using StringBuffer? 'cause in my solution I used StringBuffer.
A StringBuilder only works with one thread. If there is a possibility that several threads want to use the object at the same time, you need a StringBuffer.
Can someone tell me difference between StringBuilder and StringBuffer? Both has the same method and solution.
This comment is hidden because it contains spoiler information about the solution
As a Java newbie, I was really impressed by this solution cause of it only takes 1 row. Nice:)
Don't get discouraged, I think it's good if you're able to write your own method.
Also now you've learned how to solve this challenge in another way. It's a win-win situation.
Seeing this immediately after my attempt made a single, cold, salty tear fall from my eye.