Update main.java

Fix duplication...