Advertisement
JaimitoM

Untitled

May 25th, 2022
616
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.50 KB | None | 0 0
  1.  private void cargarFactura(ArrayList<String>listaRegistro) {
  2.         for (String s:listaRegistro) {
  3.             String[] datos = s.split( "," );
  4.             String tipoConsumidor = datos[0];
  5.             String nombreCliente = datos[1];
  6.             String direccion = datos[2];
  7.             int identificadorCliente = Integer.parseInt(datos[3]);
  8.             double consumo = Double.parseDouble(datos[4]);
  9.            
  10.             // crear aca la factura y agregarla al ArrayList <Factura>
  11.         }
  12.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement