P
pet0etie
hello,
is there some kind of function implemented in java to compare 2 strings,
which returns me a double with a value that measures the equality of 2
strings
let's say ...
<code>
String str1;
String str2;
double a;
str1 = "abcdef";
str2 = "abcdef";
a = str1.equality(str2);
// a = 1.000;
str1 = "abcdef";
str2 = "abccdef";
a = str1.equality(str2);
// a = 0.800;
str1 = "abcdef";
str2 = "abcccdef";
a = str1.equality(str2);
// a = 0.750;
str1 = "abcdef";
str2 = "abccef";
a = str1.equality(str2);
// a = 0.850;
</code>
or do i have to implement such a function on my own ?
i know ... maybe something that will be rarely used ... but i need something
like this
anyone who can help me or point to some functions i might need ?
thank u in advance,
pet0etie
is there some kind of function implemented in java to compare 2 strings,
which returns me a double with a value that measures the equality of 2
strings
let's say ...
<code>
String str1;
String str2;
double a;
str1 = "abcdef";
str2 = "abcdef";
a = str1.equality(str2);
// a = 1.000;
str1 = "abcdef";
str2 = "abccdef";
a = str1.equality(str2);
// a = 0.800;
str1 = "abcdef";
str2 = "abcccdef";
a = str1.equality(str2);
// a = 0.750;
str1 = "abcdef";
str2 = "abccef";
a = str1.equality(str2);
// a = 0.850;
</code>
or do i have to implement such a function on my own ?
i know ... maybe something that will be rarely used ... but i need something
like this
anyone who can help me or point to some functions i might need ?
thank u in advance,
pet0etie