4 回答
犯罪嫌疑人X
TA贡献2080条经验 获得超4个赞
而当我调试这个逻辑时,这个逻辑就会落入Sentence.置换中。
replace
sentence = sentence.replace("and", " ");
substring
, toLowerCase
"and"
String sentence = "Define, Measure, Analyze, Design and Verify";sentence = sentence.replace("and", " ");
湖上湖
TA贡献2003条经验 获得超2个赞
replace(this,that)
sentence = sentence.replace(this,that)
public class Test{ public static void main(String[] args) { String sentence = "Define, Measure, Analyze, Design and Verify"; String replaced = sentence.replace("and", ""); System.out.println(replaced); }}
contains()
杨魅力
TA贡献1811条经验 获得超6个赞
replace
String
:
sentence = sentence.replace("and", " ");
A String
replace
String
.
contains
replace
添加回答
举报
0/150
提交
取消