Update Class1.java

updated class1.java file now