stanleyqian
中级会员
 
中级会员
UID 29826
精华
0
积分 298
帖子 629
金钱 298 喜悦币
威望 0
人脉 0
阅读权限 30
注册 2004-7-4 来自 Melbourne, Australia.
状态 离线
|
[推荐阅读] 求救.....急
http://java.sun.com/j2se/1.5.0/docs/api/
点左面目录中的String,然后在右面的类String里面,寻找它的成员涵数:
1)
replace(CharSequence target, CharSequence replacement)
Replaces each substring of this string that matches the literal target sequence with the specified literal replacement sequence.
2)
replaceAll(String regex, String replacement)
Replaces each substring of this string that matches the given regular expression with the given replacement.
根据上面的解释,这是2个不同的Method,参数类型也不一样。
|  Stanley Qian at Melboure, Australia |
|