Update sample-main.java