正在加载图片...
第4章字符串 H region Matches(int toffset, String other,int比较本串从oset始的len个字符和 ooffset, int len) other串从 ooffset开始的len个字符是否 致 start With( String prefix) 比较字符串是否以prefⅸx开始 end With(String suffix) 比较字符串是否以 suffix结束 indexof(int ch) 返回某个字符或字符串在本字符串中 第一次出现的位置 lastIndexofo 返回某个字符或字符串在本字符串中 最后一次出现的位置 replace( char oldChar, char newChar) 将字符串中 old char字符替换成 newChar字符 valueof(Object obj) 将某个对象的实例转换成字符串第4章 字符串 regionMatches(int toffset,String other,int ooffset,int len) 比较本串从toffset开始的len个字符和 other串从ooffset开始的len个字符是否 一致 startWith(String prefix) 比较字符串是否以prefix开始 endWith(String suffix) 比较字符串是否以suffix结束 indexOf(int ch) 返回某个字符或字符串在本字符串中 第一次出现的位置 lastIndexOf() 返回某个字符或字符串在本字符串中 最后一次出现的位置 replace(char oldChar,char newChar) 将 字 符 串 中 oldChar 字 符 替 换 成 newChar字符 valueOf(Object obj) 将某个对象的实例转换成字符串
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有