String类的常用方法:
1.public int length();
2.public boolean equals(String s);
3.public boolean contains(String s);
4.public boolean startsWith(String s);
StringBuffer类的常用的方法:
1.append()
2.char charAt(int n)
3.void setCharAt(int n,char ch)
4.StringBuffer insert(int index,String str)
5.public StringBuffer reverse()
|