Add cardinals for java