会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Faron
左手代码|右手诗
博客园
首页
新随笔
联系
订阅
管理
2016年12月12日
String类的compareTo()方法的源码解析
摘要: private final char value[]; 字符串会自动转换为一个字符数组。 public int compareTo(String anotherString) { //this -- s1 -- "hello" //anotherString -- s2 -- "hel" int len1 = ...
阅读全文
posted @ 2016-12-12 19:17 Faron
阅读(1508)
评论(0)
推荐(0)
公告