Ad
  • Default User Avatar

    In here,the kata test will call your function and check what you return.
    And System.out.println() will just print to console, won't return anything.

  • Custom User Avatar

    Not an issue. Not even a question either, because this is a basic language features question, not a kata question.

    Please consult the basic language features of your language.

  • Default User Avatar

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

  • Default User Avatar

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

  • Custom User Avatar
    public class EvenOrOdd {
        public static String even_or_odd(int number) {
            //Place code here
            
        }
    }
    

    That's the initial code for java, you don't need to ask the user for input in CW, your function takes an int as parameter.

  • Default User Avatar

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