2
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 error on line 4. Error: The literal 63636363555 of type int is out of range
But the kind that method cpfIsValid
receive is a long, not an int.
public boolean cpfIsValid(long cpf) {
// código
}
Why is this happening?