Adding java examples