some java samples