Advertisement
Guest User

Untitled

a guest
Sep 29th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. public void borraRegistro(String clave) throws IOException {
  2. if (!clave.equals("") && clave !=null){
  3. int auxDIRE = this.getIndice().buscarClave(clave).getDire();
  4. this.getIndice().eliminarClave(clave);
  5.  
  6. /*this.getIndice().eliminarClave(this.getIndice().buscarClave(this.leeRegistro(nRegistro).dameNombre().trim()).getClave());*/
  7. Registro registro = this.leeRegistro(this.dameNumeroRegistros());
  8. this.escribeRegistro(registro.dameNombre(), registro.dameEdad(), registro.dameTelefono(),auxDIRE);
  9. miTabla.setLength(miTabla.length() - 52);
  10. }
  11. else {
  12. System.out.println("\nError inesperado: No se permite blanco");
  13.  
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement