addedjava code