Java CODE added