It would be of tremendous help if you posted the exact error you get when you run your code. It makes it easier for dumb people like me to zero in on where the problem is, without having to copy your code, paste it into a document, compile it, and run it (which is what I did).
Once I did that, I saw this error:
Exception in thread "main" java.lang.NoSuchMethodError: main
Seeing that tells me there is a problem with your main method.
Now I know exactly where to look. The main method in this code looks like this:
When you start a
java program, it is looking for a main with a signiature of this:
If you simply put in that argument to your main method, the code will run.