Revert "Added main method in main.java"

This reverts commit fea8b48b6e368bf49a268cd6dfacb61d51fdebff.