Update Main.java

By Jean and Gerald.