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.
Thank you! Hopefully I will learn how zo work withthese tasks...
Don't change the method's signature:
Don't create a main method, I already referred you to the docs about that. Also, the starting array being the numbers from 1 to 9 is an example, your function should take that as the first argument. It can be something different too.
Now I wrote a new code to another kata and on purpose very different from the example, but in the output apparently the methods ofthe example code ar exected. I thought, the challenge is to write an own code for solving the Kata? What do I have to do for solving the Kata? :'(
Allright, thank you. I'm glad to read that. It's more fun to write an individual code and it's better practice, too. :)
This is the initial code for Java:
Your code should be below or replacing that comment line.
I didn't copy and paste it. I adjusted it step by step, because I thought the code has to look very similar to the example. Thank you for the tip, I will delete my code and restart.
Your current code looks like you've copied/pasted the sample tests to Solution panel. Click reset and start over. Or post your code following these guidelines: https://docs.codewars.com/training/troubleshooting#post-discourse
I need help with Kata Convert a String to a Number. My code won't compile and I can't find the reason why. I compared my code to Instructio and Sample Test again and again, debugged it in IntellyJ, where it runs without problems. It's driving me crazy, not to find the problem. If anybody could help me,I'ld be very grateful.
The language is Java.
July1975
The description says: "[...] return the sum of all of the positive [numbers]". Do you know what sum is? Do you know what return means?
Remember that you can also visit Codewars Discord for help!
Thank you, I guess, I got it.
This comment is hidden because it contains spoiler information about the solution
Read this: https://docs.codewars.com/training/training-example
And that code doesn't do what the kata asks.
This comment is hidden because it contains spoiler information about the solution