Ad
  • Custom User Avatar

    to limit the length of the string for the condition since digit 0-9 is a character with the length of 1

  • Custom User Avatar

    What does this mean?

    ./src/main/java/Kata.java:1: error: modifier static not allowed here
    public static class Kata {
    ^
    ./src/test/java/SolutionTest.java:16: error: incompatible types: Node cannot be converted to Kata.Node
    Node newHead = Kata.reverse(node1);
    ^
    Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
    2 errors