Advertisement
PRO_gramer

teste adciona fim

Apr 27th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.29 KB | None | 0 0
  1. package aula.est;
  2.  
  3. public class TesteAdicionaNoFim {
  4. public static void main(String[] args) {
  5. Aluno a1 = new Aluno();
  6. Aluno a2 = 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);
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement