Advertisement
Guest User

Untitled

a guest
Oct 20th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. ArrayList<Pessoa> listaDePessoas = new ArrayList<>();
  2. listaDePessoas.add(new Pessoa("Joao", 29));
  3. listaDePessoas.add(new Pessoa("Ana", 21));
  4. listaDePessoas.add(new Pessoa("Maria", 25));
  5.  
  6. listaDePessoas.get(0).setNome("Jao carlos");
  7.  
  8. listaDePessoas.remove(listaDePessoas.get(2));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement