CadastroDePessoasFisicas c2 = new CadastroDePessoasFisicas("636.363.635");
System.out.println(c2.getNumero());
System.out.println(c2.getNumeroValidador());
System.out.println(c.cpfIsValid(63636363555));
System.out.println("\n");
Eclipse is reporting an error on line 4. Error: The literal 63636363555 of type int is out of range
But the type that the cpfIsValid
method receives is a long, not an int.
public boolean cpfIsValid(long cpf) {
// código
}
Why is this happening?