Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void printFilhotes() {
- String nomesFilhotes = "Lista de nomes dos filhotes: \n";
- for (int contador = 0; contador < listaFilhotes.size(); contador++ {
- String nome = "\n" + listaFilhotes.getNome();
- nomesFilhotes += nome;
- }
- System.out.print(nomesFilhotes);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement