🌈 搜索
📅  最后修改于: 2022-03-11 14:52:38.738000             🧑  作者: Mango
int count = string.length() - string.replaceAll("g","").length()