add java samples