📅  最后修改于: 2022-03-11 14:52:05.083000             🧑  作者: Mango
代码示例1
public static int count(String str, String target) {
return (str.length() - str.replace(target, "").length()) / target.length();
}