
sd_example.SdJavaExample Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of stringdistance_2.12 Show documentation
Show all versions of stringdistance_2.12 Show documentation
A fuzzy matching string distance library for Scala and Java.
The newest version!
package sd_example;
import com.github.vickumar1981.stringdistance.util.ArrayDistance;
public class SdJavaExample {
public static void main(String[] args) {
Double levenshtein = ArrayDistance.levenshtein(
new Ch[]{Ch.of('m'), Ch.of('a'), Ch.of('r'), Ch.of('t'), Ch.of('h'), Ch.of('a')},
new Ch[]{Ch.of('m'), Ch.of('a'), Ch.of('r'), Ch.of('h'), Ch.of('t'), Ch.of('a')}
);
System.out.println("result: " + levenshtein);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy