String

来源:互联网 发布:ubuntu自带中文输入法 编辑:程序博客网 时间:2024/05/29 14:24
/*
 * String
 * 1 添加
 * 2 修改
 * replace()
 * replaceAll() replaceFirst()
 * 3 删除
 * 4 判断
 * length()
 * contains()
 * contentEquals()
 * startsWith() endsWith()
 * equals() equalsIgnoreCase()
 * isEmpty()
 * regionMatches()
 * 5 获取
 * charAt() codePointAt/codePointBefore/codePointCount
 * getByte()
 * getChars()
 * indexOf() lastIndexOf()
 * 6 操作方法
 * compareTo() compareToIgnoreCase()
 * concat()
 * format()
 * copyValueOf()
 * matches() 
 * split()
 * subSequence() subString()
 * toCharArray()
 * trim()
 * toLowerCase() toUpperCase()
 * valueOf()
 * 7 继承方法
 * hashCode() toString()
 * getClass()/clone()/finalize()/notify()/notifyAll()/wait
 */
0 0
原创粉丝点击