Update Java Code