Wrote the exact errors on the line they appear (Main.java)