Program in Java for my OOP classes.