reset password
Author Message
ccorra15
Posts: 12
Posted 18:08 Feb 02, 2018 |

I'm confused about how our code will work with the "Main.java". When testing the "Main.java", is it supposed to iterate all the way through and not crash, or is it supposed to crash and show something like:

"Exception in thread "main" DuplicateItemException: Duplicate Item: 2"?

Thank you in advance.

kknaur
Posts: 540
Posted 18:19 Feb 02, 2018 |

Some of the lines should intentionally crash to test your exceptions.  Once you are confident that the exceptions are working, you can comment those lines out and test the code from beginning to end without crashing.