Fastest string compare algorithm in java

public class stringcompare
{
public static void main(String[] args)

{
String text1="Milan";
String text2="Milae";
int textlength=text1.length();
int text2len=text2.length();
if(textlength == text2len && text1.charAt(0)==text2.charAt(0) && text1.charAt(text2len-1)==text2.charAt(text2len-1))
{
    int end=textlength-1;
    boolean result=true;
    for(int i=1;i<end;i++){
        if(text1.charAt(i)!=text2.charAt(i) || text1.charAt(end-1)!=text2.charAt(end-1)){
            result=false;
            break;
        }
        end--;
    }
    if(result==true){
        System.out.println("match");
    }else{
        System.out.println("not match");
    }
}
else{
    System.out.println(" matched");
}

}
}