Ver Mensaje Individual
  #2 (permalink)  
Antiguo 14/05/2003, 08:37
abuenog
 
Fecha de Ingreso: julio-2001
Ubicación: Barcelona
Mensajes: 922
Antigüedad: 23 años, 7 meses
Puntos: 1
Hola, q tal.

Prueba esto:

public void setTelefono( String unTelefono)
{
if (unTelefono.length() != 8)
{
System.err.println("Ingrese un telefono válido")
System.exit(1);
}
telefono = unTelefono;

}

saludos