Various Java Assignments