Java != Javascript. I'm going to move this to the "Other Programming Languages" board.

Also, you might consider using a more informative title. "Java code help" doesn't really tell anybody what...