did you change the Class name from the file to the new class name?
where it says
public class Try1 {
replace it with
public class NewClassNameHere {
you wrote in the class name when you made the class (if you are using netbeans or eclipse) or it is the name of the file (if you are using notepad, or another text editor)
if that doesn't fix it send me the code. maybe you have a small error that is correct, except misused.