exercise about java