Update Main.java

add call internal function