updating java examples