Validación
Publicado por Camila V (1 intervención) el 09/05/2005 20:42:39
Favor ayuda ......
este validar esta bien???
static public boolean validar(String x, String y){
int j = 0;
while(true){ if(x.substring(j,j+1).equals(" ")) return false;
if(y.indexOf(x.substring(j,j+1))== (-1)){
return false;}
j=j+1;
if(j==(x.length()))break;
}
return true;}}
este validar esta bien???
static public boolean validar(String x, String y){
int j = 0;
while(true){ if(x.substring(j,j+1).equals(" ")) return false;
if(y.indexOf(x.substring(j,j+1))== (-1)){
return false;}
j=j+1;
if(j==(x.length()))break;
}
return true;}}
Valora esta pregunta


0