I put code tags around your java, making it much easier to read. Please use them in the future - it's just like making something bold or italicized - highlight what you want, then click the button labled "code" and you'll see them pop in.
Now that the code is formatted in such a way that I can read it...you'll notice several strange things. Your main() method starts on line 42, but before it ends you start a new method...
basically, you seem to have a lot of formatting errors. I don't know how you got this far without finding the problem. You should NEVER write more than 2-3 lines of code before you re-compile. writing 300+ before you do your first compile is guaranteed to cause you nothing but grief and pain.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Also I see that it is a RuntimeException. Normally this would be a compile time exception. I'm going to assume that you even though your ide complained that there where errors in your code you ran it anyway. Don't do that. Always fix compile-time errors before running.
Edit: And welcome to the JavaRanch!
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
It's like Fred said: you've got too much code. Hacking out random bits isn't going to get you anywhere, unless you get lucky. So what I would recommend is this:
Start over. No, I don't mean throw out what you have. Just start over with a new class and build it up a bit at a time. The bits are going to come from what you already have, just extract small bits and put them into the new code carefully. And like Fred said, keep compiling as you rebuild your code.
I am a bit surprised Fred didn't say, as he often does, to start with code like thisNow you can see that the class is compiling, and then you can add some real code. As Campbell Ritchie often says, write 5 lines, compile and run, then add another 5 lines. If you do it like that you can see the thing working and find errors so much more easily.
subject: Trying to figure out Exception Error in code