Sharing my Java Homework