java Sample