public static boolean compareNumberString(String firstString, String secondString) {
        Assert.notNull(firstString, "第一个字符串为空！");
        Assert.notNull(secondString, "第二个字符串为空！");
        char[] chars1 = firstString.toCharArray();
        char[] chars2 = secondString.toCharArray();
        int length1 = chars1.length;
        int length2 = chars2.length;
        int maxLength = length1 > length2 ? length1 : length2;
        for (int i = 0; i < maxLength; i++) {
            int value1 = -1;
            int value2 = -1;
            if (i < length1) {
                value1 = chars1[i];
            }

            if (i < length2) {
                value2 = chars2[i];
            }

            if(value1 < value2){
                return true;
            } else {
                return false;
            }
        }
        return false;
    }
public static boolean compareNumberString ( String firstString , String secondString ) { Assert . notNull ( firstString , "第一个字符串为空！" ) ; Assert . notNull ( secondString , "第二个字符串为空！" ) ; char [ ] chars1 = firstString . toCharArray ( ) ; char [ ] chars2 = secondString . toCharArray ( ) ; int length1 = chars1 . length ; int length2 = chars2 . length ; int maxLength = length1 > length2 ? length1 : length2 ; for ( int i = 0 ; i < maxLength ; i ++ ) { int value1 = - 1 ; int value2 = - 1 ; if ( i < length1 ) { value1 = chars1 [ i ] ; } if ( i < length2 ) { value2 = chars2 [ i ] ; } if ( value1 < value2 ) { return true ; } else { return false ; } } return false ; }
从第一个字符开始比较两个字符串的大小（按照单个字符的ascii码比较），例如： "abc"大于"aac"、"1234"小于"2234"、"1234"大于"123"、"223"大于"1234"

@param firstString  第一个字符串
@param secondString 第二个字符串
@return 如果第一个字符串小于第二个字符串，则返回true，否则返回false