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