if(mail.equals(usermail) && date1.equals(date) && title1.equals(title))
{
System.out.println("record is matched");
returnFlag = true;
break;
}
the if statement is not executing even though all the strings are equals.