Update Main.java

Add new metods