String.equals() always return true

Viewed 4707

K want to compare two strings but the equals() method always return true , so the if statement always runs. why this happens?

resultString = "Test1";
String CompleteString = "Test";
if(CompleteString.equals(resultString));
{
   rowView.setBackgroundResource(R.color.listselect_red);
}
6 Answers
Related