Update JavaSample.java