Originally Posted by
KevinWorkman
Your entire problem is due to improper formatting. Please take the few minutes to properly format your code. It will make your life easier, and perhaps more importantly, it will make it easier for us to help you.
Please read this:
The try-with-resources Statement (The Java™ Tutorials > Essential Classes > Exceptions)
You are using syntax that is halfway between a normal try block and a try-with-resources block, and we don't know which one you're actually trying to do.
I am actually not truly adept at using exception handling in my code, so you could be exactly correct that I have misused the try catch block. Also, I write relatively small, simple programs generally, so indentation has not really been an issue for me, that is until I get a strange error that I do not agree with. So, I will go ahead and concentrate on proper indentation for even the smallest programs from here forward. Thanks for the advice, and the suggestions!!