标签:定位 getch substring 最小值 amp index 对象 java基础知识 ast
StringBuffer 类 & StringBuilder 类xxxx.append("520");
xxxx.reverse()
//不需要参数xxxx.delete(2,5)//2为字符开始位置 5为结束位
xxxx.insert(2,520);//2表示插入的位置,520是整数 将以字符串的形式插入
xxxx.replace(0,17,“520”)//0&17是起始终止位置 “520”是字符串
xxxx.capacity()//无需参数
xxxx.charAt(5)
xxxx.ensureCapacity(int minimumCapacity)
xxxx.getChars(start,end,char,start)后一个start是字符数组的起始位置
xxxx.indexOf(String str)
xxxx.indexOf(String str,int fromIndex);
xxxx.lastIndexOf(String str);
xxxx.lastIndexOf(String str,int fromIndex)
xxxx.length()//无需参数
xxxx.setCharAt(int index,char ch);
xxxx.setLength(int newLength);
CharSequence ch =xxxx.subSequence(int start,int end);
String str = xxxx.substring(int start);
xxxx.toString();
整理Java基础知识--StringBuffer&StringBuilder类
标签:定位 getch substring 最小值 amp index 对象 java基础知识 ast
原文地址:http://blog.51cto.com/12431776/2059999