@Test
public void test(){
//将字符串中所有指定的子串替换成新的字符串
System.out.println("hello world,hello java".replace("llo", "he"));//输出:"hehe world,hehe java"
}
@Test
public void test(){
//将字符串中所有指定的子串替换成新的字符串
System.out.println("hello world,hello java".replace("llo", "he"));//输出:"hehe world,hehe java"
}