How about using StringUtils.countMatches from Apache Commons Lang? String str = "helloslkhellodjladfjhello"; String findStr = "hello"; ...
確定! 回上一頁