I ran into a very simple problem. For some time, little things can take all day :( but thank the stackoverflow staff who are always trying to help :)
I am trying to match 2 strings if they match and should return TRUE
now i use this
if (var1.indexOf(var2) >= 0) {
return true;
}
But if var1 is set to support, and var2 is set to inta or ain, etc., it still returns true :(. Is there any way in java that can do full text match, not partial? For example
if("mango"=="mango"){
return true;
}
thank!!
source
share