java version of numberologicality