@Test public void testSimilarityChars() { logger.info("similarityChars"); String txt1 = "this is a fine text"; String txt2 = "this is a great document"; int expResult = 12; int result = PHPSimilarText.similarityChars(txt1, txt2); assertEquals(expResult, result); }
public static int similarityChars(String txt1, String txt2) { int sim = similar_char(txt1, txt1.length(), txt2, txt2.length()); return sim; }
PHPSimilarText { public static int similarityChars(String txt1, String txt2) { int sim = similar_char(txt1, txt1.length(), txt2, txt2.length()); return sim; } }
PHPSimilarText { public static int similarityChars(String txt1, String txt2) { int sim = similar_char(txt1, txt1.length(), txt2, txt2.length()); return sim; }  }
PHPSimilarText { public static int similarityChars(String txt1, String txt2) { int sim = similar_char(txt1, txt1.length(), txt2, txt2.length()); return sim; }  static int similarityChars(String txt1, String txt2); static double similarityPercentage(String txt1, String txt2); }
PHPSimilarText { public static int similarityChars(String txt1, String txt2) { int sim = similar_char(txt1, txt1.length(), txt2, txt2.length()); return sim; }  static int similarityChars(String txt1, String txt2); static double similarityPercentage(String txt1, String txt2);  }