將字符串中某個字符串替換爲另一個字符串

package mianshi; //將字符串中某個字符串更改成另一個字符串 // "abcdef"將"bc"->"de" public class strChange { //方法一、自帶函數解決 public String replace2(String s,String s1,String s2){ if(s.contains(s1)){
相關文章
相關標籤/搜索