Document Java code