Advertisement
Guest User

Untitled

a guest
May 24th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.62 KB | None | 0 0
  1.     public void ActualizarLabelVisor() {
  2.         Set<String> res = new HashSet<String>(labelvisor);
  3.         for (String y : res) {
  4.             txta_detallepedido.setText(y + " : " + Collections.frequency(labelvisor, y));
  5.         }
  6.  
  7.     }
  8.  
  9.     public String LlenarListaDetalle(String dato) {
  10.         labelvisor.add(dato);
  11.         return dato;
  12.     }
  13.  
  14.     public String EliminarDatoDetalle(String z) {
  15.  
  16.         for (int i = 0; i < labelvisor.size(); i++) {
  17.             if (labelvisor.get(i).equals(z)) {
  18.                 labelvisor.remove(i);
  19.                 break;
  20.  
  21.             }
  22.         }
  23.  
  24.         return z;
  25.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement