java 6 assignment