-1
I’m new to Java and I’m trying to make a game... I need to verify that the two data inputs are int and string. "value1" has to be integer and "value2" has to be a string. Can you tell me if the logic is right?
if((valor1== "") || (valor2== "")){
alert("Prencha os campos corretamente...");
}else{
if(((valor1%2) != NULL) && ((valor2%2) == NULL)){
// chama outra função....
}
}