Created
April 11, 2017 22:02
-
-
Save naaando/1087fde7cca69e203fac4ea2ec68f355 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void remocao() { | |
| System.out.println("\nDigite o nome da pessoa a ser removido"); | |
| String k = scan.nextLine(); | |
| PessoaContato aRemover = null; | |
| for ( PessoaContato p : lista1 ) { | |
| if (p.getNome().equals(k)) { | |
| aRemover = p; | |
| } | |
| } | |
| String msg = lista1.remove(p)?"Usuario Removido":"Usuario nao existe"; | |
| System.out.println(msg); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment