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.
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.
This is the initial code for Java:
Your code should be below or replacing that comment line.
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
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!
Read this: https://docs.codewars.com/training/training-example
And that code doesn't do what the kata asks.