Update Main.java

removed messageCreationDate as a parameter