Class Strings


  • public final class Strings
    extends java.lang.Object
    Static utility methods for Strings
    • Constructor Summary

      Constructors 
      Constructor Description
      Strings()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String commonPrefix​(java.lang.String[] strings)  
      static int commonPrefixIndex​(java.lang.String[] strings)  
      static int count​(java.lang.String string, char ch)  
      static double levenshteinDistance​(java.lang.String s, java.lang.String t)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Strings

        public Strings()
    • Method Detail

      • commonPrefixIndex

        public static int commonPrefixIndex​(java.lang.String[] strings)
      • commonPrefix

        public static java.lang.String commonPrefix​(java.lang.String[] strings)
      • count

        public static int count​(java.lang.String string,
                                char ch)
      • levenshteinDistance

        public static double levenshteinDistance​(java.lang.String s,
                                                 java.lang.String t)