Added Java Code