more java samples