s1.replaceAll(s1.substring(0,1),s2); s1.removeAll(s2.substring(0,2));是什么意思,详细点的来

2024-12-02 20:43:35
推荐回答(1个)
回答1:

s1.replaceAll(s1.substring(0,1),s2);用s2替换s1的子串substring(0,1)
s1.removeAll(s2.substring(0,2));删除s2的子串substring(0,2)