my java sample code