java code & comment done