Академический Документы
Профессиональный Документы
Культура Документы
this, ArrayList
Curso: Informática (Subseqüente)
Disciplina: Programação Orientada a Objetos
Prof. Abrahão Lopes
abrahao.lopes@ifrn.edu.br
this
ArrayList<TipoDeDado> nome;
Exemplo:
ArrayList<String> notas;
notas
ArrayList
ArrayList<Carro> concessionaria;
ArrayList<Musica> mp3player;
ArrayList<Livro> estante;
ArrayList
notas
ArrayList
notas.add(“estudar”);
notas.add(“dormir”);
notas.add(“acordar”);
ArrayList
System.out.println(notas.size());
Próxima aula:
Remover itens,
percorrer lista.
Outros métodos de ArrayList