Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Yeah, I changed "Exception" to "RuntimeException" without "throws" and repaired one method. Now my code works and I finished it. Thanks for help :D
Thanks for reply. I will try to fix it then.
The tests basically expect you to throw a
RuntimeException
or its subclass. When you do this, the tests will pass, but you will still have one or two bugs to fix.The description should definitely mention what kind of exception is expected.
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!
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.
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