Is there any method to know the percentage of equality of two texts or Strings in Java?
An algorithm of how to implement such a method would be satisfactory, or just a light.
Thanks in advance.
Is there any method to know the percentage of equality of two texts or Strings in Java?
An algorithm of how to implement such a method would be satisfactory, or just a light.
Thanks in advance.
Look at Levenshtein distance: http://en.wikipedia.org/wiki/Levenshtein_distance
For Java implementation from Apache commons Refer :