Update Example.java

Updated example file