Upload Main.java

This is the Main class of the program.