Professional Documents
Culture Documents
Pattern p = Pattern.compile("[A-Z]{1}[A-Z]{1}[A-Z]{1}[0-9]{1}[0-9]{1}[0-9]
{1}[0-9]{1}");
Matcher s = p.matcher(Placa);
if (s.matches()) {
this.Placa = Placa;
} else {
this.Placa = "Error";
}
}
this.Chasis = Chasis;
} else {
this.Chasis = "Error";
}
}
this.Motor = Motor;
} else {
this.Motor = "Error";
}
}