Added new Java Code