Update class1.java

and i added a comment