Added more generic java examples