Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- do{
- int y=0;
- do {
- cpf = JOptionPane.showInputDialog("Digite o CPF do cliente : ");
- if(cpf == null || cpf.isEmpty() || cpf.equals("00000000000") || cpf.equals("11111111111") || cpf.equals("22222222222") || cpf.equals("33333333333") || cpf.equals("44444444444") ||
- cpf.equals("55555555555") || cpf.equals("66666666666") || cpf.equals("77777777777") || cpf.equals("88888888888") || cpf.equals("99999999999") ||
- (cpf.length()!=11)){
- JOptionPane.showMessageDialog(null,"Por favor, insira um CPF valido");
- }
- else{
- y=1;
- }
- }while(cpf == null || cpf.isEmpty() || y==0);
- }while((existeCPF(cli,cpf))==(true));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement