Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Numero {
- private ArrayList<Integer> numeros;
- private String nome;
- private List<String>lista;
- public Numero(List<String> lista) {
- this.lista = lista;
- }
- public void Nome(String nome) {
- this.nome = nome;
- }
- public Numero() {
- this.numeros = new ArrayList<Integer>();
- }
- public void preenche(Integer i,String nome) {
- lista=new ArrayList<>();
- lista.add(i,nome);
- }
- public void mostra(){
- for(int i=0;i<lista.size();i++){
- System.out.println(lista.get(i));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment