Update AntiLogEvent.java
Update Main.java
Update AntiLogEvent.java
Update Main.java
Merge pull request #2 from HmmmQuestionMark/master

Fix casting error and formatting issues.