Update sample.java