end assignment java