Multiplicity of solutions for a class of nonlinear second-order equations