Merging Main.java