Your subject title is confusing. In Java, we don't really refer to source code as "script". And if you meant to write JavaScript, that's a completely unrelated language that has nothing to do with Java.
What error messages is the compiler giving you?
Without looking at your code too closely, I can see that you've written Public and Void a couple of times. It's public and void, without capital letters.