Update Main.java

add net