added java examples