Revert "Revert "Create main.java""

This reverts commit aaf397c4965deb2ec7da215a363dcdf245c1bf0b.