String常用方法:
长度:
length()
比较
equals()
连接
concat()
提取
substring()
搜索
indexOf()
拆分
split()
StringBuffer常用的方法
转换成String类型:
to String()
连接字符
append()
插入字符
insert()
长度:
length()
比较
equals()
连接
concat()
提取
substring()
搜索
indexOf()
拆分
split()
StringBuffer常用的方法
转换成String类型:
to String()
连接字符
append()
插入字符
insert()