Ad
  • Default User Avatar

    Yeah, I changed "Exception" to "RuntimeException" without "throws" and repaired one method. Now my code works and I finished it. Thanks for help :D

  • Default User Avatar

    Thanks for reply. I will try to fix it then.

  • Default User Avatar

    I guess it solution is similiar to mine and it looks good. I have only one problem with that solution that you called integer from array that you are using "i". I don't think you should call array item "i" because it can be confusing. But still good job!

  • Default User Avatar

    Maybe I'm just dumb but I can't pass "attempt" because of two test about throwing two different exceptions. If I did not throw that, I can't pass two test. If I throw exceptions as should be, I can't pass the rest of the tests.

  • Default User Avatar

    It is really smart solution but actually I think that it might be hard to read. So if you want to understand it or change a little bit it might be problematic. But still it looks so cool and I will never think about it because its hard for me to use regex