code: public static double similarityPercentage(String txt1, String txt2) {
          double sim = similarityChars(txt1, txt2);
          return sim * 200.0 / (txt1.length() + txt2.length());
      }
docs: Checks the similarity of two strings and returns their similarity percentage.
  
  @param txt1
  @param txt2
  @return