Assignments done for Java programming class.