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.
how do I solve the random tests? Its the last thing I have to do
bruh lmao
ah alright thank you so much, im new here so i did not know
Then this is where the error comes from. When I enter the editor, I see the following initial solution:
That's what you should complete, and not write your own main method :P
Edit: to make your code look nicer you can use https://docs.codewars.com/references/markdown/#code-block
idk why some of my code is outside the box, and no to both of your other questions you asked.
This comment is hidden because it contains spoiler information about the solution
What does your solution look like? Do you have a class called 'Kata' and method named 'subtractSum' inside it? (as the tests expect it)
I was not able to submit the kata because of these errors so I decided to skip because I had no idea how to fix them.
./src/test/java/SolutionTest.java:8: error: cannot find symbol
assertEquals("apple", Kata.subtractSum(10));
^
symbol: variable Kata
location: class SolutionTest
./src/test/java/SolutionTest.java:19: error: cannot find symbol
assertEquals("apple", Kata.subtractSum(n));
^
symbol: variable Kata
location: class SolutionTest
2 errors