链接字符串:+orm
获取长度:length;字符串
查找:str.indexOf(object value);/lastIndexOf(object value);string
替换:replace(char oldChar, char newChar);it
获取指定位置的字符:charAt(int index);ast
获取子字符串:substring(int fromIndex); /substring(int fromIndex, int toIndex);form
去除空格:trim();object
判断字符串的开始和结尾:startsWith(Stringprefix);/endWith(String suffix);im
判断是否相等:equals(); equalsIgnoreCase();co
按字典顺序比较两个字符串:compareTo(String otherStr);字典
字母大小写切换:toLowerCase(); toUpperCase();
字符串分割:split(Stringsign); split(String sign, int limit);
格式化:format(String format, Object args);