java sample added