Updating java code

Based on address correction