fixed java code block