Update Main.java

add next dot