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 think I should have put directly return null below and return new int[]{j,i} inside the if, I forgot to remove the result variable, that way it continues executing the for when it has already found the solution.😅
Java Translation
The first two changes and the last one are done now, the third one now compares the user's response with the one I put in the
answer
method.thank you for the correction
My error was the same and was solved by eliminating the use of the method substring