Minimum string as per String#CompareTo

前端 未结 5 859
轮回少年
轮回少年 2021-01-20 16:07

Ok, I\'m sure that this must exist on here somewhere, but I can\'t seem to find it.

Is there, and if there is what is, a minimum (non-null) String seque

5条回答
  •  -上瘾入骨i
    2021-01-20 16:28

    There is no minimum length, since you can validly compare two empty strings with "".compareTo("")

提交回复
热议问题