Major Java Program