Im having a problem with an if statement (lame i know), I have this:
String callingNum = call.getName(); //Which obviusly returns a String
and then... I have
String numToMatch = "6655560583";
if ( callingNum == numToMatch )
{
// code
} else {
//code
}
And no matter the calling number is the correct for the match keeps on going to the else code...
What am i doing wrong ?
Thanks in advanced
String callingNum = call.getName(); //Which obviusly returns a String
and then... I have
String numToMatch = "6655560583";
if ( callingNum == numToMatch )
{
// code
} else {
//code
}
And no matter the calling number is the correct for the match keeps on going to the else code...
What am i doing wrong ?
Thanks in advanced