Hey guys, haven't posted in a while, but my programming instructor asked us to take a class and implement a "try, catch" block to catch an exception. Here's the question:
Modify the findBestPaid method in the Company class to catch an InputMismatchException (or NoSuchElementException, if the line in the file has a name and an int for hours worked, but no pay rate).
I added a try/catch block, but I'm getting some issues, and I can tell my block is not written correctly.
Let me know if you can help me out!