java samples added