Ad
  • Custom User Avatar

    I'm curius whether we're supposed to return each number or print it. I am not aware of any ways to repeatedly return value from a method. As far as i know, once a return statement is executed the program exits from the function. This is why I have choosen to use the "println" method as well.

  • Custom User Avatar

    You're right, i'm new to this. Thank you! i've figured out my problem. I'll be more careful next time.

  • Custom User Avatar

    I have noticed that the randomly generated test cases measures all occurences of the returned strings as substrings in the input text. So if one the strings i outputed was "mhvhd" and "mhvhdmhvhd" was part of the string generated by the text function it expects that "mhvhd" should be counted twice. The test function isn't working on the same delimeters as the instruction. Atleast this is the case in java.