Java program for a CSC 202 class.