assignments - java