finish java docing my code