Presently, the inclusion of the vacuum energy in the energy momentum tensor, and the inclusion of the extra dimensions in the spacetime, can not be rule out of the research in gravitation. In this work we study the influence of the vacuum energy in the collapsing process of a stellar fluid, and consequently for the cosmic censorship conjecture, considering a homogeneous and isotropic spacetime with arbitrary number of dimensions. We discuss the active gravitational mass of the black hole formed, where the vacuum energy and the number of dimensions has a crucial role in the process.