Major Java Program (Source code only available)