change file type to .java and add one line of code