vittooh

Untitled

Sep 1st, 2015
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.60 KB | None | 0 0
  1. public class Numero {
  2.     private ArrayList<Integer> numeros;
  3.     private String nome;
  4.     private List<String>lista;
  5.  
  6.     public Numero(List<String> lista) {
  7.         this.lista = lista;
  8.     }
  9.  
  10.     public void Nome(String nome) {
  11.         this.nome = nome;
  12.     }
  13.  
  14.     public Numero() {
  15.         this.numeros = new ArrayList<Integer>();
  16.     }
  17.  
  18.  
  19.     public void preenche(Integer i,String nome) {
  20.     lista=new ArrayList<>();
  21.         lista.add(i,nome);
  22.     }
  23.     public void mostra(){
  24.         for(int i=0;i<lista.size();i++){
  25.             System.out.println(lista.get(i));
  26.         }
  27.     }
  28.  
  29. }
Advertisement
Add Comment
Please, Sign In to add comment