added java code to master