Welcome to the Ranch.
Have you gone through a tutorial (such as
this one) which demonstrates compiling
Java?
If you have some trouble, the best thing to do is to ask for help, and provide details about the problem you are having. Unfortunately what you posted is not addressable because it does not have anything specifics.