public static int similarityChars ( String txt1 , String txt2 ) { int sim = similar_char ( txt1 , txt1 . length ( ) , txt2 , txt2 . length ( ) ) ; return sim ; }
Checks the similarity of two strings and returns the number of matching chars in both strings .