Added Java example