Then this is where the error comes from. When I enter the editor, I see the following initial solution:
public class Kata { public static String subtractSum (int n) { //return fruit name like "apple" } }
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
What does your solution look like? Do you have a class called 'Kata' and method named 'subtractSum' inside it? (as the tests expect it)
Loading collection data...
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
What does your solution look like? Do you have a class called 'Kata' and method named 'subtractSum' inside it? (as the tests expect it)