Minimum string as per String#CompareTo

前端 未结 5 870
轮回少年
轮回少年 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条回答
  •  面向向阳花
    2021-01-20 16:54

    Yes it is a empty String with not values in it.

    Take a look at this sample code :

    String str = "";
    str.compareTo("");
    

提交回复
热议问题