Advertisement
Guest User

Untitled

a guest
Nov 11th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. do{
  2. int y=0;
  3. do {
  4. cpf = JOptionPane.showInputDialog("Digite o CPF do cliente : ");
  5. if(cpf == null || cpf.isEmpty() || cpf.equals("00000000000") || cpf.equals("11111111111") || cpf.equals("22222222222") || cpf.equals("33333333333") || cpf.equals("44444444444") ||
  6. cpf.equals("55555555555") || cpf.equals("66666666666") || cpf.equals("77777777777") || cpf.equals("88888888888") || cpf.equals("99999999999") ||
  7. (cpf.length()!=11)){
  8. JOptionPane.showMessageDialog(null,"Por favor, insira um CPF valido");
  9. }
  10. else{
  11. y=1;
  12. }
  13. }while(cpf == null || cpf.isEmpty() || y==0);
  14. }while((existeCPF(cli,cpf))==(true));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement