It is correct if the last brace is the closing of the class block.
What did the compiler say when the code was compiled?
Shouting, bolding, repeating the same thing with no additional useful info, or just plain being annoying is not necessary.
Please read the Announcement topic at the top of the sub-forum to learn how to post your code in code or highlight tags.
The question is still too ambiguous. What does "right" mean? Why can't you compile it and run it to determine the answer yourself? Even IBM mainframes can have Java compilers and the ability to run Java's .class files.
Is there a way to get a javac program to compile the code?
This might help.
Where did all of the OPs posts go? They all seem to be blank.