Interface CanCompareString

    • Method Detail

      • compare

        int compare​(String a,
                    String b)
        Compares its two arguments for order.
        Parameters:
        a - the first string to be compared
        b - the second string to be compared
        Returns:
        a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second