Android(Java) 字符串的常用操作,获取指定字符出现的次数,根据指定字符截取字符串 public static int countStr(String str, char key) { int count = 0; ...