• Custom User Avatar

    how do I solve the random tests? Its the last thing I have to do

  • Custom User Avatar

    bruh lmao

  • Custom User Avatar

    ah alright thank you so much, im new here so i did not know

  • Custom User Avatar

    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

  • Custom User Avatar

    idk why some of my code is outside the box, and no to both of your other questions you asked.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    What does your solution look like? Do you have a class called 'Kata' and method named 'subtractSum' inside it? (as the tests expect it)

  • Custom User Avatar

    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