Advertisement
PRO_gramer

teste temanho lista

Apr 27th, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.38 KB | None | 0 0
  1. package aula.est;
  2. public class TesteTamanhoLista {
  3. public static void main(String[] args) {
  4. Aluno a1 = new Aluno();
  5. Aluno a2 = new Aluno();
  6. Aluno a3 = new Aluno();
  7. a1.setNome("Rafael");
  8. a2.setNome("Paulo");
  9. Vetor lista = new Vetor();
  10. lista.adiciona(a1);
  11. lista.adiciona(a2);
  12. System.out.println(lista.tamanho());
  13. lista.adiciona(a3);
  14. System.out.println(lista.tamanho());
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement