public static boolean isSimilar(final String str1,final String str2,final double delta){
  if ((str1 == null) || (str2 == null)) {
    return (str1 == null) && (str2 == null);
  }
  final int len1=str1.length();
  final int len2=str2.length();
  if ((len1 == 0) || (len2 == 0)) {
    return len1 == len2;
  }
  final int shorterLength=Math.min(len1,len2);
  final int limit=(int)((shorterLength * delta * shorterLength + (shorterLength - 1)) / shorterLength);
  return compareLevenshtein(str1,str2,limit);
}

public static boolean isSimilar ( final String str1 , final String str2 , final double delta ) { if ( ( str1 == null ) || ( str2 == null ) ) { return ( str1 == null ) && ( str2 == null ) ; } final int len1 = str1 . length ( ) ; final int len2 = str2 . length ( ) ; if ( ( len1 == 0 ) || ( len2 == 0 ) ) { return len1 == len2 ; } final int shorterLength = Math . min ( len1 , len2 ) ; final int limit = ( int ) ( ( shorterLength * delta * shorterLength + ( shorterLength - 1 ) ) / shorterLength ) ; return compareLevenshtein ( str1 , str2 , limit ) ; }
check for string similarity giving a limit quotient . comparison is case insensitive .
