Some sample Java code for CSCI 305